| // Code generated by mockery v0.0.0-dev. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| context "context" |
| |
| codereview "go.skia.org/infra/docsyserver/go/codereview" |
| |
| http "net/http" |
| |
| mock "github.com/stretchr/testify/mock" |
| ) |
| |
| // DocSet is an autogenerated mock type for the DocSet type |
| type DocSet struct { |
| mock.Mock |
| } |
| |
| // FileSystem provides a mock function with given fields: ctx, issue |
| func (_m *DocSet) FileSystem(ctx context.Context, issue codereview.Issue) (http.FileSystem, error) { |
| ret := _m.Called(ctx, issue) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for FileSystem") |
| } |
| |
| var r0 http.FileSystem |
| var r1 error |
| if rf, ok := ret.Get(0).(func(context.Context, codereview.Issue) (http.FileSystem, error)); ok { |
| return rf(ctx, issue) |
| } |
| if rf, ok := ret.Get(0).(func(context.Context, codereview.Issue) http.FileSystem); ok { |
| r0 = rf(ctx, issue) |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).(http.FileSystem) |
| } |
| } |
| |
| if rf, ok := ret.Get(1).(func(context.Context, codereview.Issue) error); ok { |
| r1 = rf(ctx, issue) |
| } else { |
| r1 = ret.Error(1) |
| } |
| |
| return r0, r1 |
| } |
| |
| // Start provides a mock function with given fields: ctx |
| func (_m *DocSet) Start(ctx context.Context) error { |
| ret := _m.Called(ctx) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for Start") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(context.Context) error); ok { |
| r0 = rf(ctx) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // NewDocSet creates a new instance of DocSet. 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 NewDocSet(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *DocSet { |
| mock := &DocSet{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |