| // Code generated by mockery v0.0.0-dev. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| context "context" |
| |
| mock "github.com/stretchr/testify/mock" |
| schema "go.skia.org/infra/perf/go/autobisection/sqlautobisectionstore/schema" |
| ) |
| |
| // Store is an autogenerated mock type for the Store type |
| type Store struct { |
| mock.Mock |
| } |
| |
| // Save provides a mock function with given fields: ctx, _a1 |
| func (_m *Store) Save(ctx context.Context, _a1 *schema.AutobisectionSchema) error { |
| ret := _m.Called(ctx, _a1) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for Save") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, *schema.AutobisectionSchema) error); ok { |
| r0 = rf(ctx, _a1) |
| } 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 |
| } |