/
satellites_mock.go
57 lines (44 loc) · 1.3 KB
/
satellites_mock.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
// Code generated by mockery v2.12.1. DO NOT EDIT.
package satellites
import (
testing "testing"
satellite "github.com/kobsio/kobs/pkg/hub/satellites/satellite"
mock "github.com/stretchr/testify/mock"
)
// MockClient is an autogenerated mock type for the Client type
type MockClient struct {
mock.Mock
}
// GetSatellite provides a mock function with given fields: name
func (_m *MockClient) GetSatellite(name string) satellite.Client {
ret := _m.Called(name)
var r0 satellite.Client
if rf, ok := ret.Get(0).(func(string) satellite.Client); ok {
r0 = rf(name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(satellite.Client)
}
}
return r0
}
// GetSatellites provides a mock function with given fields:
func (_m *MockClient) GetSatellites() []satellite.Client {
ret := _m.Called()
var r0 []satellite.Client
if rf, ok := ret.Get(0).(func() []satellite.Client); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]satellite.Client)
}
}
return r0
}
// NewMockClient creates a new instance of MockClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockClient(t testing.TB) *MockClient {
mock := &MockClient{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}