blob: 1c04796a264258fba1962c8339b3fc7cf71ebe80 [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"
luciconfig "go.skia.org/infra/go/luciconfig"
)
// ApiClient is an autogenerated mock type for the ApiClient type
type ApiClient struct {
mock.Mock
}
// GetProjectConfigs provides a mock function with given fields: ctx, path
func (_m *ApiClient) GetProjectConfigs(ctx context.Context, path string) ([]*luciconfig.ProjectConfig, error) {
ret := _m.Called(ctx, path)
if len(ret) == 0 {
panic("no return value specified for GetProjectConfigs")
}
var r0 []*luciconfig.ProjectConfig
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, string) ([]*luciconfig.ProjectConfig, error)); ok {
return rf(ctx, path)
}
if rf, ok := ret.Get(0).(func(context.Context, string) []*luciconfig.ProjectConfig); ok {
r0 = rf(ctx, path)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*luciconfig.ProjectConfig)
}
}
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
r1 = rf(ctx, path)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// NewApiClient creates a new instance of ApiClient. 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 NewApiClient(t interface {
mock.TestingT
Cleanup(func())
}) *ApiClient {
mock := &ApiClient{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}