blob: 8a6cfd9c65d5bb0d8e66fe9f733df2d153be6e07 [file] [log] [blame]
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
context "context"
mock "github.com/stretchr/testify/mock"
paramtools "go.skia.org/infra/go/paramtools"
types "go.skia.org/infra/perf/go/types"
)
// OPSProvider is an autogenerated mock type for the OPSProvider type
type OPSProvider struct {
mock.Mock
}
// GetLatestTile provides a mock function with given fields: _a0
func (_m *OPSProvider) GetLatestTile(_a0 context.Context) (types.TileNumber, error) {
ret := _m.Called(_a0)
if len(ret) == 0 {
panic("no return value specified for GetLatestTile")
}
var r0 types.TileNumber
var r1 error
if rf, ok := ret.Get(0).(func(context.Context) (types.TileNumber, error)); ok {
return rf(_a0)
}
if rf, ok := ret.Get(0).(func(context.Context) types.TileNumber); ok {
r0 = rf(_a0)
} else {
r0 = ret.Get(0).(types.TileNumber)
}
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetParamSet provides a mock function with given fields: ctx, tileNumber
func (_m *OPSProvider) GetParamSet(ctx context.Context, tileNumber types.TileNumber) (paramtools.ReadOnlyParamSet, error) {
ret := _m.Called(ctx, tileNumber)
if len(ret) == 0 {
panic("no return value specified for GetParamSet")
}
var r0 paramtools.ReadOnlyParamSet
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, types.TileNumber) (paramtools.ReadOnlyParamSet, error)); ok {
return rf(ctx, tileNumber)
}
if rf, ok := ret.Get(0).(func(context.Context, types.TileNumber) paramtools.ReadOnlyParamSet); ok {
r0 = rf(ctx, tileNumber)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(paramtools.ReadOnlyParamSet)
}
}
if rf, ok := ret.Get(1).(func(context.Context, types.TileNumber) error); ok {
r1 = rf(ctx, tileNumber)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// NewOPSProvider creates a new instance of OPSProvider. 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 NewOPSProvider(t interface {
mock.TestingT
Cleanup(func())
}) *OPSProvider {
mock := &OPSProvider{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}