| // Code generated by mockery v1.0.0. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| clstore "go.skia.org/infra/golden/go/clstore" |
| code_review "go.skia.org/infra/golden/go/code_review" |
| |
| context "context" |
| |
| mock "github.com/stretchr/testify/mock" |
| ) |
| |
| // Store is an autogenerated mock type for the Store type |
| type Store struct { |
| mock.Mock |
| } |
| |
| // GetChangeList provides a mock function with given fields: ctx, id |
| func (_m *Store) GetChangeList(ctx context.Context, id string) (code_review.ChangeList, error) { |
| ret := _m.Called(ctx, id) |
| |
| var r0 code_review.ChangeList |
| if rf, ok := ret.Get(0).(func(context.Context, string) code_review.ChangeList); ok { |
| r0 = rf(ctx, id) |
| } else { |
| r0 = ret.Get(0).(code_review.ChangeList) |
| } |
| |
| var r1 error |
| if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { |
| r1 = rf(ctx, id) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // GetChangeLists provides a mock function with given fields: ctx, opts |
| func (_m *Store) GetChangeLists(ctx context.Context, opts clstore.SearchOptions) ([]code_review.ChangeList, int, error) { |
| ret := _m.Called(ctx, opts) |
| |
| var r0 []code_review.ChangeList |
| if rf, ok := ret.Get(0).(func(context.Context, clstore.SearchOptions) []code_review.ChangeList); ok { |
| r0 = rf(ctx, opts) |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).([]code_review.ChangeList) |
| } |
| } |
| |
| var r1 int |
| if rf, ok := ret.Get(1).(func(context.Context, clstore.SearchOptions) int); ok { |
| r1 = rf(ctx, opts) |
| } else { |
| r1 = ret.Get(1).(int) |
| } |
| |
| var r2 error |
| if rf, ok := ret.Get(2).(func(context.Context, clstore.SearchOptions) error); ok { |
| r2 = rf(ctx, opts) |
| } else { |
| r2 = ret.Error(2) |
| } |
| |
| return r0, r1, r2 |
| } |
| |
| // GetPatchSet provides a mock function with given fields: ctx, clID, psID |
| func (_m *Store) GetPatchSet(ctx context.Context, clID string, psID string) (code_review.PatchSet, error) { |
| ret := _m.Called(ctx, clID, psID) |
| |
| var r0 code_review.PatchSet |
| if rf, ok := ret.Get(0).(func(context.Context, string, string) code_review.PatchSet); ok { |
| r0 = rf(ctx, clID, psID) |
| } else { |
| r0 = ret.Get(0).(code_review.PatchSet) |
| } |
| |
| var r1 error |
| if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { |
| r1 = rf(ctx, clID, psID) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // GetPatchSetByOrder provides a mock function with given fields: ctx, clID, psOrder |
| func (_m *Store) GetPatchSetByOrder(ctx context.Context, clID string, psOrder int) (code_review.PatchSet, error) { |
| ret := _m.Called(ctx, clID, psOrder) |
| |
| var r0 code_review.PatchSet |
| if rf, ok := ret.Get(0).(func(context.Context, string, int) code_review.PatchSet); ok { |
| r0 = rf(ctx, clID, psOrder) |
| } else { |
| r0 = ret.Get(0).(code_review.PatchSet) |
| } |
| |
| var r1 error |
| if rf, ok := ret.Get(1).(func(context.Context, string, int) error); ok { |
| r1 = rf(ctx, clID, psOrder) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // GetPatchSets provides a mock function with given fields: ctx, clID |
| func (_m *Store) GetPatchSets(ctx context.Context, clID string) ([]code_review.PatchSet, error) { |
| ret := _m.Called(ctx, clID) |
| |
| var r0 []code_review.PatchSet |
| if rf, ok := ret.Get(0).(func(context.Context, string) []code_review.PatchSet); ok { |
| r0 = rf(ctx, clID) |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).([]code_review.PatchSet) |
| } |
| } |
| |
| var r1 error |
| if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { |
| r1 = rf(ctx, clID) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // PutChangeList provides a mock function with given fields: ctx, cl |
| func (_m *Store) PutChangeList(ctx context.Context, cl code_review.ChangeList) error { |
| ret := _m.Called(ctx, cl) |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, code_review.ChangeList) error); ok { |
| r0 = rf(ctx, cl) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // PutPatchSet provides a mock function with given fields: ctx, ps |
| func (_m *Store) PutPatchSet(ctx context.Context, ps code_review.PatchSet) error { |
| ret := _m.Called(ctx, ps) |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context, code_review.PatchSet) error); ok { |
| r0 = rf(ctx, ps) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // System provides a mock function with given fields: |
| func (_m *Store) System() string { |
| ret := _m.Called() |
| |
| var r0 string |
| if rf, ok := ret.Get(0).(func() string); ok { |
| r0 = rf() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| |
| return r0 |
| } |