// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/gordon/internal/domain" mock "github.com/stretchr/testify/mock" ) // NewMockPruneProtectionStore creates a new instance of MockPruneProtectionStore. 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 NewMockPruneProtectionStore(t interface { mock.TestingT Cleanup(func()) }) *MockPruneProtectionStore { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockPruneProtectionStore{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockPruneProtectionStore is an autogenerated mock type for the PruneProtectionStore type type MockPruneProtectionStore struct { mock.Mock } type MockPruneProtectionStore_Expecter struct { mock *mock.Mock } func (_m *MockPruneProtectionStore) EXPECT() *MockPruneProtectionStore_Expecter { return &MockPruneProtectionStore_Expecter{mock: &_m.Mock} } // ProtectionSnapshot provides a mock function for the type MockPruneProtectionStore func (_mock *MockPruneProtectionStore) ProtectionSnapshot(ctx context.Context) (*domain.PruneProtectionSnapshot, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for ProtectionSnapshot") } var r0 *domain.PruneProtectionSnapshot var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) (*domain.PruneProtectionSnapshot, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) *domain.PruneProtectionSnapshot); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*domain.PruneProtectionSnapshot) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // MockPruneProtectionStore_ProtectionSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProtectionSnapshot' type MockPruneProtectionStore_ProtectionSnapshot_Call struct { *mock.Call } // ProtectionSnapshot is a helper method to define mock.On call // - ctx context.Context func (_e *MockPruneProtectionStore_Expecter) ProtectionSnapshot(ctx any) *MockPruneProtectionStore_ProtectionSnapshot_Call { return &MockPruneProtectionStore_ProtectionSnapshot_Call{Call: _e.mock.On("ProtectionSnapshot", ctx)} } func (_c *MockPruneProtectionStore_ProtectionSnapshot_Call) Run(run func(ctx context.Context)) *MockPruneProtectionStore_ProtectionSnapshot_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 *MockPruneProtectionStore_ProtectionSnapshot_Call) Return(pruneProtectionSnapshot *domain.PruneProtectionSnapshot, err error) *MockPruneProtectionStore_ProtectionSnapshot_Call { _c.Call.Return(pruneProtectionSnapshot, err) return _c } func (_c *MockPruneProtectionStore_ProtectionSnapshot_Call) RunAndReturn(run func(ctx context.Context) (*domain.PruneProtectionSnapshot, error)) *MockPruneProtectionStore_ProtectionSnapshot_Call { _c.Call.Return(run) return _c }