1 Star 0 Fork 0

nanjo_fan / goharbor-client

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