/
ClientService.go
71 lines (58 loc) · 2.14 KB
/
ClientService.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Code generated by mockery v2.42.1. DO NOT EDIT.
package version
import (
clientversion "github.com/metal-stack/metal-go/api/client/version"
mock "github.com/stretchr/testify/mock"
runtime "github.com/go-openapi/runtime"
)
// ClientService is an autogenerated mock type for the ClientService type
type ClientService struct {
mock.Mock
}
// Info provides a mock function with given fields: params, authInfo, opts
func (_m *ClientService) Info(params *clientversion.InfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...clientversion.ClientOption) (*clientversion.InfoOK, error) {
_va := make([]interface{}, len(opts))
for _i := range opts {
_va[_i] = opts[_i]
}
var _ca []interface{}
_ca = append(_ca, params, authInfo)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
if len(ret) == 0 {
panic("no return value specified for Info")
}
var r0 *clientversion.InfoOK
var r1 error
if rf, ok := ret.Get(0).(func(*clientversion.InfoParams, runtime.ClientAuthInfoWriter, ...clientversion.ClientOption) (*clientversion.InfoOK, error)); ok {
return rf(params, authInfo, opts...)
}
if rf, ok := ret.Get(0).(func(*clientversion.InfoParams, runtime.ClientAuthInfoWriter, ...clientversion.ClientOption) *clientversion.InfoOK); ok {
r0 = rf(params, authInfo, opts...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*clientversion.InfoOK)
}
}
if rf, ok := ret.Get(1).(func(*clientversion.InfoParams, runtime.ClientAuthInfoWriter, ...clientversion.ClientOption) error); ok {
r1 = rf(params, authInfo, opts...)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SetTransport provides a mock function with given fields: transport
func (_m *ClientService) SetTransport(transport runtime.ClientTransport) {
_m.Called(transport)
}
// NewClientService creates a new instance of ClientService. 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 NewClientService(t interface {
mock.TestingT
Cleanup(func())
}) *ClientService {
mock := &ClientService{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}