1 Star 0 Fork 0

nanjo_fan / goharbor-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
statistic_client_service.go 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
王帆 提交于 2023-02-13 09:15 . 修改依赖
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
runtime "github.com/go-openapi/runtime"
mock "github.com/stretchr/testify/mock"
statistic "gitee.com/nanjo-fan/goharbor-client/internal/api/client/statistic"
)
// MockStatisticClientService is an autogenerated mock type for the ClientService type
type MockStatisticClientService struct {
mock.Mock
}
// GetStatistic provides a mock function with given fields: params, authInfo
func (_m *MockStatisticClientService) GetStatistic(params *statistic.GetStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*statistic.GetStatisticOK, error) {
ret := _m.Called(params, authInfo)
var r0 *statistic.GetStatisticOK
if rf, ok := ret.Get(0).(func(*statistic.GetStatisticParams, runtime.ClientAuthInfoWriter) *statistic.GetStatisticOK); ok {
r0 = rf(params, authInfo)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*statistic.GetStatisticOK)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*statistic.GetStatisticParams, runtime.ClientAuthInfoWriter) error); ok {
r1 = rf(params, authInfo)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SetTransport provides a mock function with given fields: transport
func (_m *MockStatisticClientService) SetTransport(transport runtime.ClientTransport) {
_m.Called(transport)
}
type mockConstructorTestingTNewMockStatisticClientService interface {
mock.TestingT
Cleanup(func())
}
// NewMockStatisticClientService creates a new instance of MockStatisticClientService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockStatisticClientService(t mockConstructorTestingTNewMockStatisticClientService) *MockStatisticClientService {
mock := &MockStatisticClientService{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}
Go
1
https://gitee.com/nanjo-fan/goharbor-client.git
git@gitee.com:nanjo-fan/goharbor-client.git
nanjo-fan
goharbor-client
goharbor-client
v1.0.2

搜索帮助

53164aa7 5694891 3bd8fe86 5694891