// Code generated by pegomock. DO NOT EDIT. // Source: github.com/runatlantis/atlantis/server/events (interfaces: WorkingDir) package events import ( "reflect" "time" pegomock "github.com/petergtz/pegomock/v4" models "github.com/runatlantis/atlantis/server/events/models" logging "github.com/runatlantis/atlantis/server/logging" ) type MockWorkingDir struct { fail func(message string, callerSkip ...int) } func NewMockWorkingDir(options ...pegomock.Option) *MockWorkingDir { mock := &MockWorkingDir{} for _, option := range options { option.Apply(mock) } return mock } func (mock *MockWorkingDir) SetFailHandler(fh pegomock.FailHandler) { mock.fail = fh } func (mock *MockWorkingDir) FailHandler() pegomock.FailHandler { return mock.fail } func (mock *MockWorkingDir) Clone(logger logging.SimpleLogging, headRepo models.Repo, p models.PullRequest, workspace string) (string, error) { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, headRepo, p, workspace} _result := pegomock.GetGenericMockFrom(mock).Invoke("Clone", _params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 string var _ret1 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(string) } if _result[1] != nil { _ret1 = _result[1].(error) } } return _ret0, _ret1 } func (mock *MockWorkingDir) Delete(logger logging.SimpleLogging, r models.Repo, p models.PullRequest) error { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, r, p} _result := pegomock.GetGenericMockFrom(mock).Invoke("Delete", _params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(error) } } return _ret0 } func (mock *MockWorkingDir) DeleteForWorkspace(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string) error { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, r, p, workspace} _result := pegomock.GetGenericMockFrom(mock).Invoke("DeleteForWorkspace", _params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(error) } } return _ret0 } func (mock *MockWorkingDir) DeletePlan(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string, path string, projectName string) error { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, r, p, workspace, path, projectName} _result := pegomock.GetGenericMockFrom(mock).Invoke("DeletePlan", _params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(error) } } return _ret0 } func (mock *MockWorkingDir) GetGitUntrackedFiles(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string) ([]string, error) { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, r, p, workspace} _result := pegomock.GetGenericMockFrom(mock).Invoke("GetGitUntrackedFiles", _params, []reflect.Type{reflect.TypeOf((*[]string)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 []string var _ret1 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].([]string) } if _result[1] != nil { _ret1 = _result[1].(error) } } return _ret0, _ret1 } func (mock *MockWorkingDir) GetPullDir(r models.Repo, p models.PullRequest) (string, error) { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{r, p} _result := pegomock.GetGenericMockFrom(mock).Invoke("GetPullDir", _params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 string var _ret1 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(string) } if _result[1] != nil { _ret1 = _result[1].(error) } } return _ret0, _ret1 } func (mock *MockWorkingDir) GetWorkingDir(r models.Repo, p models.PullRequest, workspace string) (string, error) { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{r, p, workspace} _result := pegomock.GetGenericMockFrom(mock).Invoke("GetWorkingDir", _params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 string var _ret1 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(string) } if _result[1] != nil { _ret1 = _result[1].(error) } } return _ret0, _ret1 } func (mock *MockWorkingDir) HasDiverged(logger logging.SimpleLogging, cloneDir string) bool { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, cloneDir} _result := pegomock.GetGenericMockFrom(mock).Invoke("HasDiverged", _params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) var _ret0 bool if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(bool) } } return _ret0 } func (mock *MockWorkingDir) MergeAgain(logger logging.SimpleLogging, headRepo models.Repo, p models.PullRequest, workspace string) (bool, error) { if mock == nil { panic("mock must not be nil. Use myMock := NewMockWorkingDir().") } _params := []pegomock.Param{logger, headRepo, p, workspace} _result := pegomock.GetGenericMockFrom(mock).Invoke("MergeAgain", _params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) var _ret0 bool var _ret1 error if len(_result) != 0 { if _result[0] != nil { _ret0 = _result[0].(bool) } if _result[1] != nil { _ret1 = _result[1].(error) } } return _ret0, _ret1 } func (mock *MockWorkingDir) VerifyWasCalledOnce() *VerifierMockWorkingDir { return &VerifierMockWorkingDir{ mock: mock, invocationCountMatcher: pegomock.Times(1), } } func (mock *MockWorkingDir) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockWorkingDir { return &VerifierMockWorkingDir{ mock: mock, invocationCountMatcher: invocationCountMatcher, } } func (mock *MockWorkingDir) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockWorkingDir { return &VerifierMockWorkingDir{ mock: mock, invocationCountMatcher: invocationCountMatcher, inOrderContext: inOrderContext, } } func (mock *MockWorkingDir) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockWorkingDir { return &VerifierMockWorkingDir{ mock: mock, invocationCountMatcher: invocationCountMatcher, timeout: timeout, } } type VerifierMockWorkingDir struct { mock *MockWorkingDir invocationCountMatcher pegomock.InvocationCountMatcher inOrderContext *pegomock.InOrderContext timeout time.Duration } func (verifier *VerifierMockWorkingDir) Clone(logger logging.SimpleLogging, headRepo models.Repo, p models.PullRequest, workspace string) *MockWorkingDir_Clone_OngoingVerification { _params := []pegomock.Param{logger, headRepo, p, workspace} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "Clone", _params, verifier.timeout) return &MockWorkingDir_Clone_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_Clone_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_Clone_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string) { logger, headRepo, p, workspace := c.GetAllCapturedArguments() return logger[len(logger)-1], headRepo[len(headRepo)-1], p[len(p)-1], workspace[len(workspace)-1] } func (c *MockWorkingDir_Clone_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } if len(_params) > 3 { _param3 = make([]string, len(c.methodInvocations)) for u, param := range _params[3] { _param3[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) Delete(logger logging.SimpleLogging, r models.Repo, p models.PullRequest) *MockWorkingDir_Delete_OngoingVerification { _params := []pegomock.Param{logger, r, p} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "Delete", _params, verifier.timeout) return &MockWorkingDir_Delete_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_Delete_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_Delete_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest) { logger, r, p := c.GetAllCapturedArguments() return logger[len(logger)-1], r[len(r)-1], p[len(p)-1] } func (c *MockWorkingDir_Delete_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } } return } func (verifier *VerifierMockWorkingDir) DeleteForWorkspace(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string) *MockWorkingDir_DeleteForWorkspace_OngoingVerification { _params := []pegomock.Param{logger, r, p, workspace} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "DeleteForWorkspace", _params, verifier.timeout) return &MockWorkingDir_DeleteForWorkspace_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_DeleteForWorkspace_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_DeleteForWorkspace_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string) { logger, r, p, workspace := c.GetAllCapturedArguments() return logger[len(logger)-1], r[len(r)-1], p[len(p)-1], workspace[len(workspace)-1] } func (c *MockWorkingDir_DeleteForWorkspace_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } if len(_params) > 3 { _param3 = make([]string, len(c.methodInvocations)) for u, param := range _params[3] { _param3[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) DeletePlan(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string, path string, projectName string) *MockWorkingDir_DeletePlan_OngoingVerification { _params := []pegomock.Param{logger, r, p, workspace, path, projectName} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "DeletePlan", _params, verifier.timeout) return &MockWorkingDir_DeletePlan_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_DeletePlan_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_DeletePlan_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string, string, string) { logger, r, p, workspace, path, projectName := c.GetAllCapturedArguments() return logger[len(logger)-1], r[len(r)-1], p[len(p)-1], workspace[len(workspace)-1], path[len(path)-1], projectName[len(projectName)-1] } func (c *MockWorkingDir_DeletePlan_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string, _param4 []string, _param5 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } if len(_params) > 3 { _param3 = make([]string, len(c.methodInvocations)) for u, param := range _params[3] { _param3[u] = param.(string) } } if len(_params) > 4 { _param4 = make([]string, len(c.methodInvocations)) for u, param := range _params[4] { _param4[u] = param.(string) } } if len(_params) > 5 { _param5 = make([]string, len(c.methodInvocations)) for u, param := range _params[5] { _param5[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) GetGitUntrackedFiles(logger logging.SimpleLogging, r models.Repo, p models.PullRequest, workspace string) *MockWorkingDir_GetGitUntrackedFiles_OngoingVerification { _params := []pegomock.Param{logger, r, p, workspace} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetGitUntrackedFiles", _params, verifier.timeout) return &MockWorkingDir_GetGitUntrackedFiles_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_GetGitUntrackedFiles_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_GetGitUntrackedFiles_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string) { logger, r, p, workspace := c.GetAllCapturedArguments() return logger[len(logger)-1], r[len(r)-1], p[len(p)-1], workspace[len(workspace)-1] } func (c *MockWorkingDir_GetGitUntrackedFiles_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } if len(_params) > 3 { _param3 = make([]string, len(c.methodInvocations)) for u, param := range _params[3] { _param3[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) GetPullDir(r models.Repo, p models.PullRequest) *MockWorkingDir_GetPullDir_OngoingVerification { _params := []pegomock.Param{r, p} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetPullDir", _params, verifier.timeout) return &MockWorkingDir_GetPullDir_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_GetPullDir_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_GetPullDir_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest) { r, p := c.GetAllCapturedArguments() return r[len(r)-1], p[len(p)-1] } func (c *MockWorkingDir_GetPullDir_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(models.Repo) } } if len(_params) > 1 { _param1 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.PullRequest) } } } return } func (verifier *VerifierMockWorkingDir) GetWorkingDir(r models.Repo, p models.PullRequest, workspace string) *MockWorkingDir_GetWorkingDir_OngoingVerification { _params := []pegomock.Param{r, p, workspace} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetWorkingDir", _params, verifier.timeout) return &MockWorkingDir_GetWorkingDir_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_GetWorkingDir_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_GetWorkingDir_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest, string) { r, p, workspace := c.GetAllCapturedArguments() return r[len(r)-1], p[len(p)-1], workspace[len(workspace)-1] } func (c *MockWorkingDir_GetWorkingDir_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest, _param2 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(models.Repo) } } if len(_params) > 1 { _param1 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.PullRequest) } } if len(_params) > 2 { _param2 = make([]string, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) HasDiverged(logger logging.SimpleLogging, cloneDir string) *MockWorkingDir_HasDiverged_OngoingVerification { _params := []pegomock.Param{logger, cloneDir} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "HasDiverged", _params, verifier.timeout) return &MockWorkingDir_HasDiverged_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_HasDiverged_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_HasDiverged_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, string) { logger, cloneDir := c.GetAllCapturedArguments() return logger[len(logger)-1], cloneDir[len(cloneDir)-1] } func (c *MockWorkingDir_HasDiverged_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]string, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(string) } } } return } func (verifier *VerifierMockWorkingDir) MergeAgain(logger logging.SimpleLogging, headRepo models.Repo, p models.PullRequest, workspace string) *MockWorkingDir_MergeAgain_OngoingVerification { _params := []pegomock.Param{logger, headRepo, p, workspace} methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "MergeAgain", _params, verifier.timeout) return &MockWorkingDir_MergeAgain_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} } type MockWorkingDir_MergeAgain_OngoingVerification struct { mock *MockWorkingDir methodInvocations []pegomock.MethodInvocation } func (c *MockWorkingDir_MergeAgain_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string) { logger, headRepo, p, workspace := c.GetAllCapturedArguments() return logger[len(logger)-1], headRepo[len(headRepo)-1], p[len(p)-1], workspace[len(workspace)-1] } func (c *MockWorkingDir_MergeAgain_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string) { _params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) if len(_params) > 0 { if len(_params) > 0 { _param0 = make([]logging.SimpleLogging, len(c.methodInvocations)) for u, param := range _params[0] { _param0[u] = param.(logging.SimpleLogging) } } if len(_params) > 1 { _param1 = make([]models.Repo, len(c.methodInvocations)) for u, param := range _params[1] { _param1[u] = param.(models.Repo) } } if len(_params) > 2 { _param2 = make([]models.PullRequest, len(c.methodInvocations)) for u, param := range _params[2] { _param2[u] = param.(models.PullRequest) } } if len(_params) > 3 { _param3 = make([]string, len(c.methodInvocations)) for u, param := range _params[3] { _param3[u] = param.(string) } } } return }