blob: ff3c2b283f3cad96d3a5d7396d42d3edc0fdf6c6 [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"
store "go.skia.org/infra/perf/go/trybot/store"
time "time"
trybot "go.skia.org/infra/perf/go/trybot"
types "go.skia.org/infra/perf/go/types"
)
// TryBotStore is an autogenerated mock type for the TryBotStore type
type TryBotStore struct {
mock.Mock
}
// Get provides a mock function with given fields: ctx, cl, patch
func (_m *TryBotStore) Get(ctx context.Context, cl types.CL, patch int) ([]store.GetResult, error) {
ret := _m.Called(ctx, cl, patch)
if len(ret) == 0 {
panic("no return value specified for Get")
}
var r0 []store.GetResult
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, types.CL, int) ([]store.GetResult, error)); ok {
return rf(ctx, cl, patch)
}
if rf, ok := ret.Get(0).(func(context.Context, types.CL, int) []store.GetResult); ok {
r0 = rf(ctx, cl, patch)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]store.GetResult)
}
}
if rf, ok := ret.Get(1).(func(context.Context, types.CL, int) error); ok {
r1 = rf(ctx, cl, patch)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// List provides a mock function with given fields: ctx, since
func (_m *TryBotStore) List(ctx context.Context, since time.Time) ([]store.ListResult, error) {
ret := _m.Called(ctx, since)
if len(ret) == 0 {
panic("no return value specified for List")
}
var r0 []store.ListResult
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, time.Time) ([]store.ListResult, error)); ok {
return rf(ctx, since)
}
if rf, ok := ret.Get(0).(func(context.Context, time.Time) []store.ListResult); ok {
r0 = rf(ctx, since)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]store.ListResult)
}
}
if rf, ok := ret.Get(1).(func(context.Context, time.Time) error); ok {
r1 = rf(ctx, since)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Write provides a mock function with given fields: ctx, tryFile
func (_m *TryBotStore) Write(ctx context.Context, tryFile trybot.TryFile) error {
ret := _m.Called(ctx, tryFile)
if len(ret) == 0 {
panic("no return value specified for Write")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, trybot.TryFile) error); ok {
r0 = rf(ctx, tryFile)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewTryBotStore creates a new instance of TryBotStore. 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 NewTryBotStore(t interface {
mock.TestingT
Cleanup(func())
}) *TryBotStore {
mock := &TryBotStore{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}