// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "bnema.dev/ermite/internal/domain" mock "github.com/stretchr/testify/mock" ) // NewCIActivity creates a new instance of CIActivity. 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 NewCIActivity(t interface { mock.TestingT Cleanup(func()) }) *CIActivity { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &CIActivity{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // CIActivity is an autogenerated mock type for the CIActivity type type CIActivity struct { mock.Mock } type CIActivity_Expecter struct { mock *mock.Mock } func (_m *CIActivity) EXPECT() *CIActivity_Expecter { return &CIActivity_Expecter{mock: &_m.Mock} } // Settled provides a mock function for the type CIActivity func (_mock *CIActivity) Settled(ctx context.Context, repo domain.RepoName, number int64) bool { ret := _mock.Called(ctx, repo, number) if len(ret) == 0 { panic("no return value specified for Settled") } var r0 bool if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64) bool); ok { r0 = returnFunc(ctx, repo, number) } else { r0 = ret.Get(0).(bool) } return r0 } // CIActivity_Settled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Settled' type CIActivity_Settled_Call struct { *mock.Call } // Settled is a helper method to define mock.On call // - ctx context.Context // - repo domain.RepoName // - number int64 func (_e *CIActivity_Expecter) Settled(ctx any, repo any, number any) *CIActivity_Settled_Call { return &CIActivity_Settled_Call{Call: _e.mock.On("Settled", ctx, repo, number)} } func (_c *CIActivity_Settled_Call) Run(run func(ctx context.Context, repo domain.RepoName, number int64)) *CIActivity_Settled_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 *CIActivity_Settled_Call) Return(b bool) *CIActivity_Settled_Call { _c.Call.Return(b) return _c } func (_c *CIActivity_Settled_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, number int64) bool) *CIActivity_Settled_Call { _c.Call.Return(run) return _c }