// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "time" "bnema.dev/ermite/internal/domain" "bnema.dev/ermite/internal/ports" mock "github.com/stretchr/testify/mock" ) // NewCIStore creates a new instance of CIStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewCIStore(t interface { mock.TestingT Cleanup(func()) }) *CIStore { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &CIStore{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // CIStore is an autogenerated mock type for the CIStore type type CIStore struct { mock.Mock } type CIStore_Expecter struct { mock *mock.Mock } func (_m *CIStore) EXPECT() *CIStore_Expecter { return &CIStore_Expecter{mock: &_m.Mock} } // Apply provides a mock function for the type CIStore func (_mock *CIStore) Apply(ctx context.Context, w ports.CIWrite) (uint64, error) { ret := _mock.Called(ctx, w) if len(ret) == 0 { panic("no return value specified for Apply") } var r0 uint64 var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, ports.CIWrite) (uint64, error)); ok { return returnFunc(ctx, w) } if returnFunc, ok := ret.Get(0).(func(context.Context, ports.CIWrite) uint64); ok { r0 = returnFunc(ctx, w) } else { r0 = ret.Get(0).(uint64) } if returnFunc, ok := ret.Get(1).(func(context.Context, ports.CIWrite) error); ok { r1 = returnFunc(ctx, w) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply' type CIStore_Apply_Call struct { *mock.Call } // Apply is a helper method to define mock.On call // - ctx context.Context // - w ports.CIWrite func (_e *CIStore_Expecter) Apply(ctx any, w any) *CIStore_Apply_Call { return &CIStore_Apply_Call{Call: _e.mock.On("Apply", ctx, w)} } func (_c *CIStore_Apply_Call) Run(run func(ctx context.Context, w ports.CIWrite)) *CIStore_Apply_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 ports.CIWrite if args[1] != nil { arg1 = args[1].(ports.CIWrite) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_Apply_Call) Return(version uint64, err error) *CIStore_Apply_Call { _c.Call.Return(version, err) return _c } func (_c *CIStore_Apply_Call) RunAndReturn(run func(ctx context.Context, w ports.CIWrite) (uint64, error)) *CIStore_Apply_Call { _c.Call.Return(run) return _c } // CreateRun provides a mock function for the type CIStore func (_mock *CIStore) CreateRun(ctx context.Context, repo domain.RepoName, workflowPath string, build func(id int64, number int64) ports.CIRunDraft) (ports.CIRunDraft, error) { ret := _mock.Called(ctx, repo, workflowPath, build) if len(ret) == 0 { panic("no return value specified for CreateRun") } var r0 ports.CIRunDraft var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, string, func(id int64, number int64) ports.CIRunDraft) (ports.CIRunDraft, error)); ok { return returnFunc(ctx, repo, workflowPath, build) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, string, func(id int64, number int64) ports.CIRunDraft) ports.CIRunDraft); ok { r0 = returnFunc(ctx, repo, workflowPath, build) } else { r0 = ret.Get(0).(ports.CIRunDraft) } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName, string, func(id int64, number int64) ports.CIRunDraft) error); ok { r1 = returnFunc(ctx, repo, workflowPath, build) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_CreateRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRun' type CIStore_CreateRun_Call struct { *mock.Call } // CreateRun is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName // - workflowPath string // - build func(id int64, number int64) ports.CIRunDraft func (_e *CIStore_Expecter) CreateRun(ctx any, repo any, workflowPath any, build any) *CIStore_CreateRun_Call { return &CIStore_CreateRun_Call{Call: _e.mock.On("CreateRun", ctx, repo, workflowPath, build)} } func (_c *CIStore_CreateRun_Call) Run(run func(ctx context.Context, repo domain.RepoName, workflowPath string, build func(id int64, number int64) ports.CIRunDraft)) *CIStore_CreateRun_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RepoName if args[1] != nil { arg1 = args[1].(domain.RepoName) } var arg2 string if args[2] != nil { arg2 = args[2].(string) } var arg3 func(id int64, number int64) ports.CIRunDraft if args[3] != nil { arg3 = args[3].(func(id int64, number int64) ports.CIRunDraft) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_CreateRun_Call) Return(cIRunDraft ports.CIRunDraft, err error) *CIStore_CreateRun_Call { _c.Call.Return(cIRunDraft, err) return _c } func (_c *CIStore_CreateRun_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, workflowPath string, build func(id int64, number int64) ports.CIRunDraft) (ports.CIRunDraft, error)) *CIStore_CreateRun_Call { _c.Call.Return(run) return _c } // CreateRunner provides a mock function for the type CIStore func (_mock *CIStore) CreateRunner(ctx context.Context, r domain.CIRunner, replace bool) ([]domain.CIRunner, error) { ret := _mock.Called(ctx, r, replace) if len(ret) == 0 { panic("no return value specified for CreateRunner") } var r0 []domain.CIRunner var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.CIRunner, bool) ([]domain.CIRunner, error)); ok { return returnFunc(ctx, r, replace) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.CIRunner, bool) []domain.CIRunner); ok { r0 = returnFunc(ctx, r, replace) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIRunner) } } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.CIRunner, bool) error); ok { r1 = returnFunc(ctx, r, replace) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_CreateRunner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRunner' type CIStore_CreateRunner_Call struct { *mock.Call } // CreateRunner is a helper method to define mock.On call // - ctx context.Context // - r domain.CIRunner // - replace bool func (_e *CIStore_Expecter) CreateRunner(ctx any, r any, replace any) *CIStore_CreateRunner_Call { return &CIStore_CreateRunner_Call{Call: _e.mock.On("CreateRunner", ctx, r, replace)} } func (_c *CIStore_CreateRunner_Call) Run(run func(ctx context.Context, r domain.CIRunner, replace bool)) *CIStore_CreateRunner_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.CIRunner if args[1] != nil { arg1 = args[1].(domain.CIRunner) } var arg2 bool if args[2] != nil { arg2 = args[2].(bool) } run( arg0, arg1, arg2, ) }) return _c } func (_c *CIStore_CreateRunner_Call) Return(removed []domain.CIRunner, err error) *CIStore_CreateRunner_Call { _c.Call.Return(removed, err) return _c } func (_c *CIStore_CreateRunner_Call) RunAndReturn(run func(ctx context.Context, r domain.CIRunner, replace bool) ([]domain.CIRunner, error)) *CIStore_CreateRunner_Call { _c.Call.Return(run) return _c } // FindJobByToken provides a mock function for the type CIStore func (_mock *CIStore) FindJobByToken(ctx context.Context, hash domain.TokenHash, now time.Time) (domain.CIJob, error) { ret := _mock.Called(ctx, hash, now) if len(ret) == 0 { panic("no return value specified for FindJobByToken") } var r0 domain.CIJob var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.TokenHash, time.Time) (domain.CIJob, error)); ok { return returnFunc(ctx, hash, now) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.TokenHash, time.Time) domain.CIJob); ok { r0 = returnFunc(ctx, hash, now) } else { r0 = ret.Get(0).(domain.CIJob) } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.TokenHash, time.Time) error); ok { r1 = returnFunc(ctx, hash, now) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_FindJobByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindJobByToken' type CIStore_FindJobByToken_Call struct { *mock.Call } // FindJobByToken is a helper method to define mock.On call // - ctx context.Context // - hash domain.TokenHash // - now time.Time func (_e *CIStore_Expecter) FindJobByToken(ctx any, hash any, now any) *CIStore_FindJobByToken_Call { return &CIStore_FindJobByToken_Call{Call: _e.mock.On("FindJobByToken", ctx, hash, now)} } func (_c *CIStore_FindJobByToken_Call) Run(run func(ctx context.Context, hash domain.TokenHash, now time.Time)) *CIStore_FindJobByToken_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.TokenHash if args[1] != nil { arg1 = args[1].(domain.TokenHash) } var arg2 time.Time if args[2] != nil { arg2 = args[2].(time.Time) } run( arg0, arg1, arg2, ) }) return _c } func (_c *CIStore_FindJobByToken_Call) Return(cIJob domain.CIJob, err error) *CIStore_FindJobByToken_Call { _c.Call.Return(cIJob, err) return _c } func (_c *CIStore_FindJobByToken_Call) RunAndReturn(run func(ctx context.Context, hash domain.TokenHash, now time.Time) (domain.CIJob, error)) *CIStore_FindJobByToken_Call { _c.Call.Return(run) return _c } // FindRunnerByToken provides a mock function for the type CIStore func (_mock *CIStore) FindRunnerByToken(ctx context.Context, hash domain.TokenHash) (domain.CIRunner, error) { ret := _mock.Called(ctx, hash) if len(ret) == 0 { panic("no return value specified for FindRunnerByToken") } var r0 domain.CIRunner var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.TokenHash) (domain.CIRunner, error)); ok { return returnFunc(ctx, hash) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.TokenHash) domain.CIRunner); ok { r0 = returnFunc(ctx, hash) } else { r0 = ret.Get(0).(domain.CIRunner) } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.TokenHash) error); ok { r1 = returnFunc(ctx, hash) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_FindRunnerByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindRunnerByToken' type CIStore_FindRunnerByToken_Call struct { *mock.Call } // FindRunnerByToken is a helper method to define mock.On call // - ctx context.Context // - hash domain.TokenHash func (_e *CIStore_Expecter) FindRunnerByToken(ctx any, hash any) *CIStore_FindRunnerByToken_Call { return &CIStore_FindRunnerByToken_Call{Call: _e.mock.On("FindRunnerByToken", ctx, hash)} } func (_c *CIStore_FindRunnerByToken_Call) Run(run func(ctx context.Context, hash domain.TokenHash)) *CIStore_FindRunnerByToken_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.TokenHash if args[1] != nil { arg1 = args[1].(domain.TokenHash) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_FindRunnerByToken_Call) Return(cIRunner domain.CIRunner, err error) *CIStore_FindRunnerByToken_Call { _c.Call.Return(cIRunner, err) return _c } func (_c *CIStore_FindRunnerByToken_Call) RunAndReturn(run func(ctx context.Context, hash domain.TokenHash) (domain.CIRunner, error)) *CIStore_FindRunnerByToken_Call { _c.Call.Return(run) return _c } // GetActionResolution provides a mock function for the type CIStore func (_mock *CIStore) GetActionResolution(ctx context.Context, runID int64, runAttempt int32, key string) (domain.CIActionResolution, error) { ret := _mock.Called(ctx, runID, runAttempt, key) if len(ret) == 0 { panic("no return value specified for GetActionResolution") } var r0 domain.CIActionResolution var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) (domain.CIActionResolution, error)); ok { return returnFunc(ctx, runID, runAttempt, key) } if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) domain.CIActionResolution); ok { r0 = returnFunc(ctx, runID, runAttempt, key) } else { r0 = ret.Get(0).(domain.CIActionResolution) } if returnFunc, ok := ret.Get(1).(func(context.Context, int64, int32, string) error); ok { r1 = returnFunc(ctx, runID, runAttempt, key) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_GetActionResolution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActionResolution' type CIStore_GetActionResolution_Call struct { *mock.Call } // GetActionResolution is a helper method to define mock.On call // - ctx context.Context // - runID int64 // - runAttempt int32 // - key string func (_e *CIStore_Expecter) GetActionResolution(ctx any, runID any, runAttempt any, key any) *CIStore_GetActionResolution_Call { return &CIStore_GetActionResolution_Call{Call: _e.mock.On("GetActionResolution", ctx, runID, runAttempt, key)} } func (_c *CIStore_GetActionResolution_Call) Run(run func(ctx context.Context, runID int64, runAttempt int32, key string)) *CIStore_GetActionResolution_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int64 if args[1] != nil { arg1 = args[1].(int64) } var arg2 int32 if args[2] != nil { arg2 = args[2].(int32) } var arg3 string if args[3] != nil { arg3 = args[3].(string) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_GetActionResolution_Call) Return(cIActionResolution domain.CIActionResolution, err error) *CIStore_GetActionResolution_Call { _c.Call.Return(cIActionResolution, err) return _c } func (_c *CIStore_GetActionResolution_Call) RunAndReturn(run func(ctx context.Context, runID int64, runAttempt int32, key string) (domain.CIActionResolution, error)) *CIStore_GetActionResolution_Call { _c.Call.Return(run) return _c } // GetJob provides a mock function for the type CIStore func (_mock *CIStore) GetJob(ctx context.Context, runID int64, runAttempt int32, jobID string) (domain.CIJob, error) { ret := _mock.Called(ctx, runID, runAttempt, jobID) if len(ret) == 0 { panic("no return value specified for GetJob") } var r0 domain.CIJob var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) (domain.CIJob, error)); ok { return returnFunc(ctx, runID, runAttempt, jobID) } if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) domain.CIJob); ok { r0 = returnFunc(ctx, runID, runAttempt, jobID) } else { r0 = ret.Get(0).(domain.CIJob) } if returnFunc, ok := ret.Get(1).(func(context.Context, int64, int32, string) error); ok { r1 = returnFunc(ctx, runID, runAttempt, jobID) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_GetJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJob' type CIStore_GetJob_Call struct { *mock.Call } // GetJob is a helper method to define mock.On call // - ctx context.Context // - runID int64 // - runAttempt int32 // - jobID string func (_e *CIStore_Expecter) GetJob(ctx any, runID any, runAttempt any, jobID any) *CIStore_GetJob_Call { return &CIStore_GetJob_Call{Call: _e.mock.On("GetJob", ctx, runID, runAttempt, jobID)} } func (_c *CIStore_GetJob_Call) Run(run func(ctx context.Context, runID int64, runAttempt int32, jobID string)) *CIStore_GetJob_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int64 if args[1] != nil { arg1 = args[1].(int64) } var arg2 int32 if args[2] != nil { arg2 = args[2].(int32) } var arg3 string if args[3] != nil { arg3 = args[3].(string) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_GetJob_Call) Return(cIJob domain.CIJob, err error) *CIStore_GetJob_Call { _c.Call.Return(cIJob, err) return _c } func (_c *CIStore_GetJob_Call) RunAndReturn(run func(ctx context.Context, runID int64, runAttempt int32, jobID string) (domain.CIJob, error)) *CIStore_GetJob_Call { _c.Call.Return(run) return _c } // GetRun provides a mock function for the type CIStore func (_mock *CIStore) GetRun(ctx context.Context, repo domain.RepoName, id int64) (domain.CIRun, error) { ret := _mock.Called(ctx, repo, id) if len(ret) == 0 { panic("no return value specified for GetRun") } var r0 domain.CIRun var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64) (domain.CIRun, error)); ok { return returnFunc(ctx, repo, id) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64) domain.CIRun); ok { r0 = returnFunc(ctx, repo, id) } else { r0 = ret.Get(0).(domain.CIRun) } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName, int64) error); ok { r1 = returnFunc(ctx, repo, id) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_GetRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRun' type CIStore_GetRun_Call struct { *mock.Call } // GetRun is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName // - id int64 func (_e *CIStore_Expecter) GetRun(ctx any, repo any, id any) *CIStore_GetRun_Call { return &CIStore_GetRun_Call{Call: _e.mock.On("GetRun", ctx, repo, id)} } func (_c *CIStore_GetRun_Call) Run(run func(ctx context.Context, repo domain.RepoName, id int64)) *CIStore_GetRun_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RepoName if args[1] != nil { arg1 = args[1].(domain.RepoName) } var arg2 int64 if args[2] != nil { arg2 = args[2].(int64) } run( arg0, arg1, arg2, ) }) return _c } func (_c *CIStore_GetRun_Call) Return(cIRun domain.CIRun, err error) *CIStore_GetRun_Call { _c.Call.Return(cIRun, err) return _c } func (_c *CIStore_GetRun_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, id int64) (domain.CIRun, error)) *CIStore_GetRun_Call { _c.Call.Return(run) return _c } // GetRunSource provides a mock function for the type CIStore func (_mock *CIStore) GetRunSource(ctx context.Context, runID int64) (domain.CIRunSource, error) { ret := _mock.Called(ctx, runID) if len(ret) == 0 { panic("no return value specified for GetRunSource") } var r0 domain.CIRunSource var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int64) (domain.CIRunSource, error)); ok { return returnFunc(ctx, runID) } if returnFunc, ok := ret.Get(0).(func(context.Context, int64) domain.CIRunSource); ok { r0 = returnFunc(ctx, runID) } else { r0 = ret.Get(0).(domain.CIRunSource) } if returnFunc, ok := ret.Get(1).(func(context.Context, int64) error); ok { r1 = returnFunc(ctx, runID) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_GetRunSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRunSource' type CIStore_GetRunSource_Call struct { *mock.Call } // GetRunSource is a helper method to define mock.On call // - ctx context.Context // - runID int64 func (_e *CIStore_Expecter) GetRunSource(ctx any, runID any) *CIStore_GetRunSource_Call { return &CIStore_GetRunSource_Call{Call: _e.mock.On("GetRunSource", ctx, runID)} } func (_c *CIStore_GetRunSource_Call) Run(run func(ctx context.Context, runID int64)) *CIStore_GetRunSource_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int64 if args[1] != nil { arg1 = args[1].(int64) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_GetRunSource_Call) Return(cIRunSource domain.CIRunSource, err error) *CIStore_GetRunSource_Call { _c.Call.Return(cIRunSource, err) return _c } func (_c *CIStore_GetRunSource_Call) RunAndReturn(run func(ctx context.Context, runID int64) (domain.CIRunSource, error)) *CIStore_GetRunSource_Call { _c.Call.Return(run) return _c } // GetRunner provides a mock function for the type CIStore func (_mock *CIStore) GetRunner(ctx context.Context, id string) (domain.CIRunner, error) { ret := _mock.Called(ctx, id) if len(ret) == 0 { panic("no return value specified for GetRunner") } var r0 domain.CIRunner var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, string) (domain.CIRunner, error)); ok { return returnFunc(ctx, id) } if returnFunc, ok := ret.Get(0).(func(context.Context, string) domain.CIRunner); ok { r0 = returnFunc(ctx, id) } else { r0 = ret.Get(0).(domain.CIRunner) } if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { r1 = returnFunc(ctx, id) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_GetRunner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRunner' type CIStore_GetRunner_Call struct { *mock.Call } // GetRunner is a helper method to define mock.On call // - ctx context.Context // - id string func (_e *CIStore_Expecter) GetRunner(ctx any, id any) *CIStore_GetRunner_Call { return &CIStore_GetRunner_Call{Call: _e.mock.On("GetRunner", ctx, id)} } func (_c *CIStore_GetRunner_Call) Run(run func(ctx context.Context, id string)) *CIStore_GetRunner_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_GetRunner_Call) Return(cIRunner domain.CIRunner, err error) *CIStore_GetRunner_Call { _c.Call.Return(cIRunner, err) return _c } func (_c *CIStore_GetRunner_Call) RunAndReturn(run func(ctx context.Context, id string) (domain.CIRunner, error)) *CIStore_GetRunner_Call { _c.Call.Return(run) return _c } // JobAnnotations provides a mock function for the type CIStore func (_mock *CIStore) JobAnnotations(ctx context.Context, runID int64, attempt int32, jobID string) ([]domain.CIAnnotation, error) { ret := _mock.Called(ctx, runID, attempt, jobID) if len(ret) == 0 { panic("no return value specified for JobAnnotations") } var r0 []domain.CIAnnotation var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) ([]domain.CIAnnotation, error)); ok { return returnFunc(ctx, runID, attempt, jobID) } if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32, string) []domain.CIAnnotation); ok { r0 = returnFunc(ctx, runID, attempt, jobID) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIAnnotation) } } if returnFunc, ok := ret.Get(1).(func(context.Context, int64, int32, string) error); ok { r1 = returnFunc(ctx, runID, attempt, jobID) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_JobAnnotations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JobAnnotations' type CIStore_JobAnnotations_Call struct { *mock.Call } // JobAnnotations is a helper method to define mock.On call // - ctx context.Context // - runID int64 // - attempt int32 // - jobID string func (_e *CIStore_Expecter) JobAnnotations(ctx any, runID any, attempt any, jobID any) *CIStore_JobAnnotations_Call { return &CIStore_JobAnnotations_Call{Call: _e.mock.On("JobAnnotations", ctx, runID, attempt, jobID)} } func (_c *CIStore_JobAnnotations_Call) Run(run func(ctx context.Context, runID int64, attempt int32, jobID string)) *CIStore_JobAnnotations_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int64 if args[1] != nil { arg1 = args[1].(int64) } var arg2 int32 if args[2] != nil { arg2 = args[2].(int32) } var arg3 string if args[3] != nil { arg3 = args[3].(string) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_JobAnnotations_Call) Return(cIAnnotations []domain.CIAnnotation, err error) *CIStore_JobAnnotations_Call { _c.Call.Return(cIAnnotations, err) return _c } func (_c *CIStore_JobAnnotations_Call) RunAndReturn(run func(ctx context.Context, runID int64, attempt int32, jobID string) ([]domain.CIAnnotation, error)) *CIStore_JobAnnotations_Call { _c.Call.Return(run) return _c } // ListActiveJobs provides a mock function for the type CIStore func (_mock *CIStore) ListActiveJobs(ctx context.Context) ([]domain.CIJob, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for ListActiveJobs") } var r0 []domain.CIJob var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) ([]domain.CIJob, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) []domain.CIJob); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIJob) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListActiveJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActiveJobs' type CIStore_ListActiveJobs_Call struct { *mock.Call } // ListActiveJobs is a helper method to define mock.On call // - ctx context.Context func (_e *CIStore_Expecter) ListActiveJobs(ctx any) *CIStore_ListActiveJobs_Call { return &CIStore_ListActiveJobs_Call{Call: _e.mock.On("ListActiveJobs", ctx)} } func (_c *CIStore_ListActiveJobs_Call) Run(run func(ctx context.Context)) *CIStore_ListActiveJobs_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } run( arg0, ) }) return _c } func (_c *CIStore_ListActiveJobs_Call) Return(cIJobs []domain.CIJob, err error) *CIStore_ListActiveJobs_Call { _c.Call.Return(cIJobs, err) return _c } func (_c *CIStore_ListActiveJobs_Call) RunAndReturn(run func(ctx context.Context) ([]domain.CIJob, error)) *CIStore_ListActiveJobs_Call { _c.Call.Return(run) return _c } // ListChecks provides a mock function for the type CIStore func (_mock *CIStore) ListChecks(ctx context.Context, repo domain.RepoName, sha string, limit int) ([]domain.CICheck, bool, error) { ret := _mock.Called(ctx, repo, sha, limit) if len(ret) == 0 { panic("no return value specified for ListChecks") } var r0 []domain.CICheck var r1 bool var r2 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, string, int) ([]domain.CICheck, bool, error)); ok { return returnFunc(ctx, repo, sha, limit) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, string, int) []domain.CICheck); ok { r0 = returnFunc(ctx, repo, sha, limit) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CICheck) } } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName, string, int) bool); ok { r1 = returnFunc(ctx, repo, sha, limit) } else { r1 = ret.Get(1).(bool) } if returnFunc, ok := ret.Get(2).(func(context.Context, domain.RepoName, string, int) error); ok { r2 = returnFunc(ctx, repo, sha, limit) } else { r2 = ret.Error(2) } return r0, r1, r2 } // CIStore_ListChecks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChecks' type CIStore_ListChecks_Call struct { *mock.Call } // ListChecks is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName // - sha string // - limit int func (_e *CIStore_Expecter) ListChecks(ctx any, repo any, sha any, limit any) *CIStore_ListChecks_Call { return &CIStore_ListChecks_Call{Call: _e.mock.On("ListChecks", ctx, repo, sha, limit)} } func (_c *CIStore_ListChecks_Call) Run(run func(ctx context.Context, repo domain.RepoName, sha string, limit int)) *CIStore_ListChecks_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RepoName if args[1] != nil { arg1 = args[1].(domain.RepoName) } var arg2 string if args[2] != nil { arg2 = args[2].(string) } var arg3 int if args[3] != nil { arg3 = args[3].(int) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_ListChecks_Call) Return(checks []domain.CICheck, more bool, err error) *CIStore_ListChecks_Call { _c.Call.Return(checks, more, err) return _c } func (_c *CIStore_ListChecks_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, sha string, limit int) ([]domain.CICheck, bool, error)) *CIStore_ListChecks_Call { _c.Call.Return(run) return _c } // ListJobs provides a mock function for the type CIStore func (_mock *CIStore) ListJobs(ctx context.Context, runID int64, runAttempt int32) ([]domain.CIJob, error) { ret := _mock.Called(ctx, runID, runAttempt) if len(ret) == 0 { panic("no return value specified for ListJobs") } var r0 []domain.CIJob var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32) ([]domain.CIJob, error)); ok { return returnFunc(ctx, runID, runAttempt) } if returnFunc, ok := ret.Get(0).(func(context.Context, int64, int32) []domain.CIJob); ok { r0 = returnFunc(ctx, runID, runAttempt) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIJob) } } if returnFunc, ok := ret.Get(1).(func(context.Context, int64, int32) error); ok { r1 = returnFunc(ctx, runID, runAttempt) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListJobs' type CIStore_ListJobs_Call struct { *mock.Call } // ListJobs is a helper method to define mock.On call // - ctx context.Context // - runID int64 // - runAttempt int32 func (_e *CIStore_Expecter) ListJobs(ctx any, runID any, runAttempt any) *CIStore_ListJobs_Call { return &CIStore_ListJobs_Call{Call: _e.mock.On("ListJobs", ctx, runID, runAttempt)} } func (_c *CIStore_ListJobs_Call) Run(run func(ctx context.Context, runID int64, runAttempt int32)) *CIStore_ListJobs_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int64 if args[1] != nil { arg1 = args[1].(int64) } var arg2 int32 if args[2] != nil { arg2 = args[2].(int32) } run( arg0, arg1, arg2, ) }) return _c } func (_c *CIStore_ListJobs_Call) Return(cIJobs []domain.CIJob, err error) *CIStore_ListJobs_Call { _c.Call.Return(cIJobs, err) return _c } func (_c *CIStore_ListJobs_Call) RunAndReturn(run func(ctx context.Context, runID int64, runAttempt int32) ([]domain.CIJob, error)) *CIStore_ListJobs_Call { _c.Call.Return(run) return _c } // ListOpenRuns provides a mock function for the type CIStore func (_mock *CIStore) ListOpenRuns(ctx context.Context) ([]domain.CIRun, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for ListOpenRuns") } var r0 []domain.CIRun var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) ([]domain.CIRun, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) []domain.CIRun); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIRun) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListOpenRuns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOpenRuns' type CIStore_ListOpenRuns_Call struct { *mock.Call } // ListOpenRuns is a helper method to define mock.On call // - ctx context.Context func (_e *CIStore_Expecter) ListOpenRuns(ctx any) *CIStore_ListOpenRuns_Call { return &CIStore_ListOpenRuns_Call{Call: _e.mock.On("ListOpenRuns", ctx)} } func (_c *CIStore_ListOpenRuns_Call) Run(run func(ctx context.Context)) *CIStore_ListOpenRuns_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } run( arg0, ) }) return _c } func (_c *CIStore_ListOpenRuns_Call) Return(cIRuns []domain.CIRun, err error) *CIStore_ListOpenRuns_Call { _c.Call.Return(cIRuns, err) return _c } func (_c *CIStore_ListOpenRuns_Call) RunAndReturn(run func(ctx context.Context) ([]domain.CIRun, error)) *CIStore_ListOpenRuns_Call { _c.Call.Return(run) return _c } // ListReadyJobs provides a mock function for the type CIStore func (_mock *CIStore) ListReadyJobs(ctx context.Context, limit int) ([]domain.CIJob, error) { ret := _mock.Called(ctx, limit) if len(ret) == 0 { panic("no return value specified for ListReadyJobs") } var r0 []domain.CIJob var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, int) ([]domain.CIJob, error)); ok { return returnFunc(ctx, limit) } if returnFunc, ok := ret.Get(0).(func(context.Context, int) []domain.CIJob); ok { r0 = returnFunc(ctx, limit) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIJob) } } if returnFunc, ok := ret.Get(1).(func(context.Context, int) error); ok { r1 = returnFunc(ctx, limit) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListReadyJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReadyJobs' type CIStore_ListReadyJobs_Call struct { *mock.Call } // ListReadyJobs is a helper method to define mock.On call // - ctx context.Context // - limit int func (_e *CIStore_Expecter) ListReadyJobs(ctx any, limit any) *CIStore_ListReadyJobs_Call { return &CIStore_ListReadyJobs_Call{Call: _e.mock.On("ListReadyJobs", ctx, limit)} } func (_c *CIStore_ListReadyJobs_Call) Run(run func(ctx context.Context, limit int)) *CIStore_ListReadyJobs_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int if args[1] != nil { arg1 = args[1].(int) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_ListReadyJobs_Call) Return(cIJobs []domain.CIJob, err error) *CIStore_ListReadyJobs_Call { _c.Call.Return(cIJobs, err) return _c } func (_c *CIStore_ListReadyJobs_Call) RunAndReturn(run func(ctx context.Context, limit int) ([]domain.CIJob, error)) *CIStore_ListReadyJobs_Call { _c.Call.Return(run) return _c } // ListRunners provides a mock function for the type CIStore func (_mock *CIStore) ListRunners(ctx context.Context) ([]domain.CIRunner, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for ListRunners") } var r0 []domain.CIRunner var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) ([]domain.CIRunner, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) []domain.CIRunner); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIRunner) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListRunners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRunners' type CIStore_ListRunners_Call struct { *mock.Call } // ListRunners is a helper method to define mock.On call // - ctx context.Context func (_e *CIStore_Expecter) ListRunners(ctx any) *CIStore_ListRunners_Call { return &CIStore_ListRunners_Call{Call: _e.mock.On("ListRunners", ctx)} } func (_c *CIStore_ListRunners_Call) Run(run func(ctx context.Context)) *CIStore_ListRunners_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } run( arg0, ) }) return _c } func (_c *CIStore_ListRunners_Call) Return(cIRunners []domain.CIRunner, err error) *CIStore_ListRunners_Call { _c.Call.Return(cIRunners, err) return _c } func (_c *CIStore_ListRunners_Call) RunAndReturn(run func(ctx context.Context) ([]domain.CIRunner, error)) *CIStore_ListRunners_Call { _c.Call.Return(run) return _c } // ListRuns provides a mock function for the type CIStore func (_mock *CIStore) ListRuns(ctx context.Context, repo domain.RepoName, before int64, limit int) ([]domain.CIRun, error) { ret := _mock.Called(ctx, repo, before, limit) if len(ret) == 0 { panic("no return value specified for ListRuns") } var r0 []domain.CIRun var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64, int) ([]domain.CIRun, error)); ok { return returnFunc(ctx, repo, before, limit) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64, int) []domain.CIRun); ok { r0 = returnFunc(ctx, repo, before, limit) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.CIRun) } } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName, int64, int) error); ok { r1 = returnFunc(ctx, repo, before, limit) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_ListRuns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRuns' type CIStore_ListRuns_Call struct { *mock.Call } // ListRuns is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName // - before int64 // - limit int func (_e *CIStore_Expecter) ListRuns(ctx any, repo any, before any, limit any) *CIStore_ListRuns_Call { return &CIStore_ListRuns_Call{Call: _e.mock.On("ListRuns", ctx, repo, before, limit)} } func (_c *CIStore_ListRuns_Call) Run(run func(ctx context.Context, repo domain.RepoName, before int64, limit int)) *CIStore_ListRuns_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RepoName if args[1] != nil { arg1 = args[1].(domain.RepoName) } var arg2 int64 if args[2] != nil { arg2 = args[2].(int64) } var arg3 int if args[3] != nil { arg3 = args[3].(int) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *CIStore_ListRuns_Call) Return(cIRuns []domain.CIRun, err error) *CIStore_ListRuns_Call { _c.Call.Return(cIRuns, err) return _c } func (_c *CIStore_ListRuns_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, before int64, limit int) ([]domain.CIRun, error)) *CIStore_ListRuns_Call { _c.Call.Return(run) return _c } // RemoveRunner provides a mock function for the type CIStore func (_mock *CIStore) RemoveRunner(ctx context.Context, id string) (domain.CIRunner, error) { ret := _mock.Called(ctx, id) if len(ret) == 0 { panic("no return value specified for RemoveRunner") } var r0 domain.CIRunner var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, string) (domain.CIRunner, error)); ok { return returnFunc(ctx, id) } if returnFunc, ok := ret.Get(0).(func(context.Context, string) domain.CIRunner); ok { r0 = returnFunc(ctx, id) } else { r0 = ret.Get(0).(domain.CIRunner) } if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { r1 = returnFunc(ctx, id) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_RemoveRunner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRunner' type CIStore_RemoveRunner_Call struct { *mock.Call } // RemoveRunner is a helper method to define mock.On call // - ctx context.Context // - id string func (_e *CIStore_Expecter) RemoveRunner(ctx any, id any) *CIStore_RemoveRunner_Call { return &CIStore_RemoveRunner_Call{Call: _e.mock.On("RemoveRunner", ctx, id)} } func (_c *CIStore_RemoveRunner_Call) Run(run func(ctx context.Context, id string)) *CIStore_RemoveRunner_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_RemoveRunner_Call) Return(cIRunner domain.CIRunner, err error) *CIStore_RemoveRunner_Call { _c.Call.Return(cIRunner, err) return _c } func (_c *CIStore_RemoveRunner_Call) RunAndReturn(run func(ctx context.Context, id string) (domain.CIRunner, error)) *CIStore_RemoveRunner_Call { _c.Call.Return(run) return _c } // RunIDs provides a mock function for the type CIStore func (_mock *CIStore) RunIDs(ctx context.Context, repo domain.RepoName) ([]int64, error) { ret := _mock.Called(ctx, repo) if len(ret) == 0 { panic("no return value specified for RunIDs") } var r0 []int64 var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName) ([]int64, error)); ok { return returnFunc(ctx, repo) } if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName) []int64); ok { r0 = returnFunc(ctx, repo) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]int64) } } if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName) error); ok { r1 = returnFunc(ctx, repo) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_RunIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunIDs' type CIStore_RunIDs_Call struct { *mock.Call } // RunIDs is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName func (_e *CIStore_Expecter) RunIDs(ctx any, repo any) *CIStore_RunIDs_Call { return &CIStore_RunIDs_Call{Call: _e.mock.On("RunIDs", ctx, repo)} } func (_c *CIStore_RunIDs_Call) Run(run func(ctx context.Context, repo domain.RepoName)) *CIStore_RunIDs_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RepoName if args[1] != nil { arg1 = args[1].(domain.RepoName) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_RunIDs_Call) Return(int64s []int64, err error) *CIStore_RunIDs_Call { _c.Call.Return(int64s, err) return _c } func (_c *CIStore_RunIDs_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName) ([]int64, error)) *CIStore_RunIDs_Call { _c.Call.Return(run) return _c } // Sweep provides a mock function for the type CIStore func (_mock *CIStore) Sweep(ctx context.Context, before time.Time) ([]int64, error) { ret := _mock.Called(ctx, before) if len(ret) == 0 { panic("no return value specified for Sweep") } var r0 []int64 var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, time.Time) ([]int64, error)); ok { return returnFunc(ctx, before) } if returnFunc, ok := ret.Get(0).(func(context.Context, time.Time) []int64); ok { r0 = returnFunc(ctx, before) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]int64) } } if returnFunc, ok := ret.Get(1).(func(context.Context, time.Time) error); ok { r1 = returnFunc(ctx, before) } else { r1 = ret.Error(1) } return r0, r1 } // CIStore_Sweep_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sweep' type CIStore_Sweep_Call struct { *mock.Call } // Sweep is a helper method to define mock.On call // - ctx context.Context // - before time.Time func (_e *CIStore_Expecter) Sweep(ctx any, before any) *CIStore_Sweep_Call { return &CIStore_Sweep_Call{Call: _e.mock.On("Sweep", ctx, before)} } func (_c *CIStore_Sweep_Call) Run(run func(ctx context.Context, before time.Time)) *CIStore_Sweep_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 time.Time if args[1] != nil { arg1 = args[1].(time.Time) } run( arg0, arg1, ) }) return _c } func (_c *CIStore_Sweep_Call) Return(int64s []int64, err error) *CIStore_Sweep_Call { _c.Call.Return(int64s, err) return _c } func (_c *CIStore_Sweep_Call) RunAndReturn(run func(ctx context.Context, before time.Time) ([]int64, error)) *CIStore_Sweep_Call { _c.Call.Return(run) return _c }