/
runtime_version_configurator_for_updating.go
51 lines (40 loc) · 1.57 KB
/
runtime_version_configurator_for_updating.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
// Code generated by mockery v2.14.0. DO NOT EDIT.
package automock
import (
internal "github.com/kyma-project/control-plane/components/kyma-environment-broker/internal"
mock "github.com/stretchr/testify/mock"
)
// RuntimeVersionConfiguratorForUpdating is an autogenerated mock type for the RuntimeVersionConfiguratorForUpdating type
type RuntimeVersionConfiguratorForUpdating struct {
mock.Mock
}
// ForUpdating provides a mock function with given fields: op
func (_m *RuntimeVersionConfiguratorForUpdating) ForUpdating(op internal.Operation) (*internal.RuntimeVersionData, error) {
ret := _m.Called(op)
var r0 *internal.RuntimeVersionData
if rf, ok := ret.Get(0).(func(internal.Operation) *internal.RuntimeVersionData); ok {
r0 = rf(op)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*internal.RuntimeVersionData)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(internal.Operation) error); ok {
r1 = rf(op)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type mockConstructorTestingTNewRuntimeVersionConfiguratorForUpdating interface {
mock.TestingT
Cleanup(func())
}
// NewRuntimeVersionConfiguratorForUpdating creates a new instance of RuntimeVersionConfiguratorForUpdating. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRuntimeVersionConfiguratorForUpdating(t mockConstructorTestingTNewRuntimeVersionConfiguratorForUpdating) *RuntimeVersionConfiguratorForUpdating {
mock := &RuntimeVersionConfiguratorForUpdating{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}