| // Code generated by mockery v0.0.0-dev. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| mock "github.com/stretchr/testify/mock" |
| config "go.skia.org/infra/perf/go/config" |
| |
| tracestore "go.skia.org/infra/perf/go/tracestore" |
| |
| types "go.skia.org/infra/perf/go/types" |
| ) |
| |
| // Application is an autogenerated mock type for the Application type |
| type Application struct { |
| mock.Mock |
| } |
| |
| // ConfigCreatePubSubTopicsAndSubscriptions provides a mock function with given fields: instanceConfig |
| func (_m *Application) ConfigCreatePubSubTopicsAndSubscriptions(instanceConfig *config.InstanceConfig) error { |
| ret := _m.Called(instanceConfig) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for ConfigCreatePubSubTopicsAndSubscriptions") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig) error); ok { |
| r0 = rf(instanceConfig) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseBackupAlerts provides a mock function with given fields: instanceConfig, outputFile |
| func (_m *Application) DatabaseBackupAlerts(instanceConfig *config.InstanceConfig, outputFile string) error { |
| ret := _m.Called(instanceConfig, outputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseBackupAlerts") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig, string) error); ok { |
| r0 = rf(instanceConfig, outputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseBackupRegressions provides a mock function with given fields: local, instanceConfig, outputFile, backupTo |
| func (_m *Application) DatabaseBackupRegressions(local bool, instanceConfig *config.InstanceConfig, outputFile string, backupTo string) error { |
| ret := _m.Called(local, instanceConfig, outputFile, backupTo) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseBackupRegressions") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(bool, *config.InstanceConfig, string, string) error); ok { |
| r0 = rf(local, instanceConfig, outputFile, backupTo) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseBackupShortcuts provides a mock function with given fields: instanceConfig, outputFile |
| func (_m *Application) DatabaseBackupShortcuts(instanceConfig *config.InstanceConfig, outputFile string) error { |
| ret := _m.Called(instanceConfig, outputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseBackupShortcuts") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig, string) error); ok { |
| r0 = rf(instanceConfig, outputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseRestoreAlerts provides a mock function with given fields: instanceConfig, inputFile |
| func (_m *Application) DatabaseRestoreAlerts(instanceConfig *config.InstanceConfig, inputFile string) error { |
| ret := _m.Called(instanceConfig, inputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseRestoreAlerts") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig, string) error); ok { |
| r0 = rf(instanceConfig, inputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseRestoreRegressions provides a mock function with given fields: instanceConfig, inputFile |
| func (_m *Application) DatabaseRestoreRegressions(instanceConfig *config.InstanceConfig, inputFile string) error { |
| ret := _m.Called(instanceConfig, inputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseRestoreRegressions") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig, string) error); ok { |
| r0 = rf(instanceConfig, inputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // DatabaseRestoreShortcuts provides a mock function with given fields: instanceConfig, inputFile |
| func (_m *Application) DatabaseRestoreShortcuts(instanceConfig *config.InstanceConfig, inputFile string) error { |
| ret := _m.Called(instanceConfig, inputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for DatabaseRestoreShortcuts") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(*config.InstanceConfig, string) error); ok { |
| r0 = rf(instanceConfig, inputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // IngestForceReingest provides a mock function with given fields: local, instanceConfig, start, stop, dryrun, pathFilter |
| func (_m *Application) IngestForceReingest(local bool, instanceConfig *config.InstanceConfig, start string, stop string, dryrun bool, pathFilter string) error { |
| ret := _m.Called(local, instanceConfig, start, stop, dryrun, pathFilter) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for IngestForceReingest") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(bool, *config.InstanceConfig, string, string, bool, string) error); ok { |
| r0 = rf(local, instanceConfig, start, stop, dryrun, pathFilter) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // IngestValidate provides a mock function with given fields: inputFile, verbose |
| func (_m *Application) IngestValidate(inputFile string, verbose bool) error { |
| ret := _m.Called(inputFile, verbose) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for IngestValidate") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(string, bool) error); ok { |
| r0 = rf(inputFile, verbose) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // TracesExport provides a mock function with given fields: store, queryString, begin, end, outputFile |
| func (_m *Application) TracesExport(store tracestore.TraceStore, queryString string, begin types.CommitNumber, end types.CommitNumber, outputFile string) error { |
| ret := _m.Called(store, queryString, begin, end, outputFile) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for TracesExport") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(tracestore.TraceStore, string, types.CommitNumber, types.CommitNumber, string) error); ok { |
| r0 = rf(store, queryString, begin, end, outputFile) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // TracesList provides a mock function with given fields: store, queryString, tileNumber |
| func (_m *Application) TracesList(store tracestore.TraceStore, queryString string, tileNumber types.TileNumber) error { |
| ret := _m.Called(store, queryString, tileNumber) |
| |
| if len(ret) == 0 { |
| panic("no return value specified for TracesList") |
| } |
| |
| var r0 error |
| if rf, ok := ret.Get(0).(func(tracestore.TraceStore, string, types.TileNumber) error); ok { |
| r0 = rf(store, queryString, tileNumber) |
| } else { |
| r0 = ret.Error(0) |
| } |
| |
| return r0 |
| } |
| |
| // NewApplication creates a new instance of Application. 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 NewApplication(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *Application { |
| mock := &Application{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |