/
Client.go
87 lines (69 loc) · 1.76 KB
/
Client.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated by mockery v2.42.0. DO NOT EDIT.
package client
import (
goclient "github.com/metal-stack-cloud/api/go/client"
mock "github.com/stretchr/testify/mock"
)
// Client is an autogenerated mock type for the Client type
type Client struct {
mock.Mock
}
// Adminv1 provides a mock function with given fields:
func (_m *Client) Adminv1() goclient.Adminv1 {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Adminv1")
}
var r0 goclient.Adminv1
if rf, ok := ret.Get(0).(func() goclient.Adminv1); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(goclient.Adminv1)
}
}
return r0
}
// Apiv1 provides a mock function with given fields:
func (_m *Client) Apiv1() goclient.Apiv1 {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Apiv1")
}
var r0 goclient.Apiv1
if rf, ok := ret.Get(0).(func() goclient.Apiv1); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(goclient.Apiv1)
}
}
return r0
}
// Statusv1 provides a mock function with given fields:
func (_m *Client) Statusv1() goclient.Statusv1 {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Statusv1")
}
var r0 goclient.Statusv1
if rf, ok := ret.Get(0).(func() goclient.Statusv1); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(goclient.Statusv1)
}
}
return r0
}
// NewClient creates a new instance of Client. 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 NewClient(t interface {
mock.TestingT
Cleanup(func())
}) *Client {
mock := &Client{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}