/
pluginBinaryDownloader.go
78 lines (60 loc) · 1.84 KB
/
pluginBinaryDownloader.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
// Code generated by mockery v2.42.1. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type
type PluginBinaryDownloader struct {
mock.Mock
}
// InstallVM provides a mock function with given fields: vmID, vmBin
func (_m *PluginBinaryDownloader) InstallVM(vmID string, vmBin string) error {
ret := _m.Called(vmID, vmBin)
if len(ret) == 0 {
panic("no return value specified for InstallVM")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, string) error); ok {
r0 = rf(vmID, vmBin)
} else {
r0 = ret.Error(0)
}
return r0
}
// RemoveVM provides a mock function with given fields: vmID
func (_m *PluginBinaryDownloader) RemoveVM(vmID string) error {
ret := _m.Called(vmID)
if len(ret) == 0 {
panic("no return value specified for RemoveVM")
}
var r0 error
if rf, ok := ret.Get(0).(func(string) error); ok {
r0 = rf(vmID)
} else {
r0 = ret.Error(0)
}
return r0
}
// UpgradeVM provides a mock function with given fields: vmID, vmBin
func (_m *PluginBinaryDownloader) UpgradeVM(vmID string, vmBin string) error {
ret := _m.Called(vmID, vmBin)
if len(ret) == 0 {
panic("no return value specified for UpgradeVM")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, string) error); ok {
r0 = rf(vmID, vmBin)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewPluginBinaryDownloader creates a new instance of PluginBinaryDownloader. 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 NewPluginBinaryDownloader(t interface {
mock.TestingT
Cleanup(func())
}) *PluginBinaryDownloader {
mock := &PluginBinaryDownloader{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}