// Code generated by pegomock. DO NOT EDIT.
// Source: github.com/runatlantis/atlantis/server/events (interfaces: ProjectCommandBuilder)

package mocks

import (
	pegomock "github.com/petergtz/pegomock/v4"
	events "github.com/runatlantis/atlantis/server/events"
	command "github.com/runatlantis/atlantis/server/events/command"
	"reflect"
	"time"
)

type MockProjectCommandBuilder struct {
	fail func(message string, callerSkip ...int)
}

func NewMockProjectCommandBuilder(options ...pegomock.Option) *MockProjectCommandBuilder {
	mock := &MockProjectCommandBuilder{}
	for _, option := range options {
		option.Apply(mock)
	}
	return mock
}

func (mock *MockProjectCommandBuilder) SetFailHandler(fh pegomock.FailHandler) { mock.fail = fh }
func (mock *MockProjectCommandBuilder) FailHandler() pegomock.FailHandler      { return mock.fail }

func (mock *MockProjectCommandBuilder) BuildApplyCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildApplyCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildApprovePoliciesCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildApprovePoliciesCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildAutoplanCommands(ctx *command.Context) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildAutoplanCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildImportCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildImportCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildPlanCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildPlanCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildStateRmCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildStateRmCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) BuildVersionCommands(ctx *command.Context, comment *events.CommentCommand) ([]command.ProjectContext, error) {
	if mock == nil {
		panic("mock must not be nil. Use myMock := NewMockProjectCommandBuilder().")
	}
	_params := []pegomock.Param{ctx, comment}
	_result := pegomock.GetGenericMockFrom(mock).Invoke("BuildVersionCommands", _params, []reflect.Type{reflect.TypeOf((*[]command.ProjectContext)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
	var _ret0 []command.ProjectContext
	var _ret1 error
	if len(_result) != 0 {
		if _result[0] != nil {
			_ret0 = _result[0].([]command.ProjectContext)
		}
		if _result[1] != nil {
			_ret1 = _result[1].(error)
		}
	}
	return _ret0, _ret1
}

func (mock *MockProjectCommandBuilder) VerifyWasCalledOnce() *VerifierMockProjectCommandBuilder {
	return &VerifierMockProjectCommandBuilder{
		mock:                   mock,
		invocationCountMatcher: pegomock.Times(1),
	}
}

func (mock *MockProjectCommandBuilder) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockProjectCommandBuilder {
	return &VerifierMockProjectCommandBuilder{
		mock:                   mock,
		invocationCountMatcher: invocationCountMatcher,
	}
}

func (mock *MockProjectCommandBuilder) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockProjectCommandBuilder {
	return &VerifierMockProjectCommandBuilder{
		mock:                   mock,
		invocationCountMatcher: invocationCountMatcher,
		inOrderContext:         inOrderContext,
	}
}

func (mock *MockProjectCommandBuilder) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockProjectCommandBuilder {
	return &VerifierMockProjectCommandBuilder{
		mock:                   mock,
		invocationCountMatcher: invocationCountMatcher,
		timeout:                timeout,
	}
}

type VerifierMockProjectCommandBuilder struct {
	mock                   *MockProjectCommandBuilder
	invocationCountMatcher pegomock.InvocationCountMatcher
	inOrderContext         *pegomock.InOrderContext
	timeout                time.Duration
}

func (verifier *VerifierMockProjectCommandBuilder) BuildApplyCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildApplyCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildApplyCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildApplyCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildApplyCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildApplyCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildApplyCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildApprovePoliciesCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildApprovePoliciesCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildApprovePoliciesCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildApprovePoliciesCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildApprovePoliciesCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildApprovePoliciesCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildApprovePoliciesCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildAutoplanCommands(ctx *command.Context) *MockProjectCommandBuilder_BuildAutoplanCommands_OngoingVerification {
	_params := []pegomock.Param{ctx}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildAutoplanCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildAutoplanCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildAutoplanCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildAutoplanCommands_OngoingVerification) GetCapturedArguments() *command.Context {
	ctx := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1]
}

func (c *MockProjectCommandBuilder_BuildAutoplanCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildImportCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildImportCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildImportCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildImportCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildImportCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildImportCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildImportCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildPlanCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildPlanCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildPlanCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildPlanCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildPlanCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildPlanCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildPlanCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildStateRmCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildStateRmCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildStateRmCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildStateRmCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildStateRmCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildStateRmCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildStateRmCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}

func (verifier *VerifierMockProjectCommandBuilder) BuildVersionCommands(ctx *command.Context, comment *events.CommentCommand) *MockProjectCommandBuilder_BuildVersionCommands_OngoingVerification {
	_params := []pegomock.Param{ctx, comment}
	methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BuildVersionCommands", _params, verifier.timeout)
	return &MockProjectCommandBuilder_BuildVersionCommands_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
}

type MockProjectCommandBuilder_BuildVersionCommands_OngoingVerification struct {
	mock              *MockProjectCommandBuilder
	methodInvocations []pegomock.MethodInvocation
}

func (c *MockProjectCommandBuilder_BuildVersionCommands_OngoingVerification) GetCapturedArguments() (*command.Context, *events.CommentCommand) {
	ctx, comment := c.GetAllCapturedArguments()
	return ctx[len(ctx)-1], comment[len(comment)-1]
}

func (c *MockProjectCommandBuilder_BuildVersionCommands_OngoingVerification) GetAllCapturedArguments() (_param0 []*command.Context, _param1 []*events.CommentCommand) {
	_params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
	if len(_params) > 0 {
		if len(_params) > 0 {
			_param0 = make([]*command.Context, len(c.methodInvocations))
			for u, param := range _params[0] {
				_param0[u] = param.(*command.Context)
			}
		}
		if len(_params) > 1 {
			_param1 = make([]*events.CommentCommand, len(c.methodInvocations))
			for u, param := range _params[1] {
				_param1[u] = param.(*events.CommentCommand)
			}
		}
	}
	return
}
