| // Code generated by mockery v0.0.0-dev. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| context "context" |
| |
| mock "github.com/stretchr/testify/mock" |
| ignore "go.skia.org/infra/golden/go/ignore" |
| ) |
| |
| // Store is an autogenerated mock type for the Store type |
| type Store struct { |
| mock.Mock |
| } |
| |
| // Create provides a mock function with given fields: _a0, _a1 |
| func (_m *Store) Create(_a0 context.Context, _a1 ignore.Rule) error { |
| ret := _m.Called(_a0, _a1) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for Create") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, ignore.Rule) error); ok { |
| r0 = rf(_a0, _a1) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // Delete provides a mock function with given fields: ctx, id |
| func (_m *Store) Delete(ctx context.Context, id string) error { |
| ret := _m.Called(ctx, id) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for Delete") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { |
| r0 = rf(ctx, id) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // List provides a mock function with given fields: _a0 |
| func (_m *Store) List(_a0 context.Context) ([]ignore.Rule, error) { |
| ret := _m.Called(_a0) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for List") |
| } |
| |
| var r0 []ignore.Rule |
| var r1 error |
| if rf, ok := ret.Get(0).(func(context.Context) ([]ignore.Rule, error)); ok { |
| return rf(_a0) |
| } |
| if rf, ok := ret.Get(0).(func(context.Context) []ignore.Rule); ok { |
| r0 = rf(_a0) |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).([]ignore.Rule) |
| } |
| } |
| |
| if rf, ok := ret.Get(1).(func(context.Context) error); ok { |
| r1 = rf(_a0) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // Update provides a mock function with given fields: ctx, rule |
| func (_m *Store) Update(ctx context.Context, rule ignore.Rule) error { |
| ret := _m.Called(ctx, rule) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for Update") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, ignore.Rule) error); ok { |
| r0 = rf(ctx, rule) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // NewStore creates a new instance of Store. 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 NewStore(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *Store { |
| mock := &Store{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |