/
bundle_loader.go
43 lines (36 loc) · 996 Bytes
/
bundle_loader.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
package automock
import chart "k8s.io/helm/pkg/proto/hapi/chart"
import internal "github.com/kyma-project/kyma/components/helm-broker/internal"
import io "io"
import mock "github.com/stretchr/testify/mock"
// BundleLoader is an autogenerated mock type for the BundleLoader type
type BundleLoader struct {
mock.Mock
}
// Load provides a mock function with given fields: _a0
func (_m *BundleLoader) Load(_a0 io.Reader) (*internal.Bundle, []*chart.Chart, error) {
ret := _m.Called(_a0)
var r0 *internal.Bundle
if rf, ok := ret.Get(0).(func(io.Reader) *internal.Bundle); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*internal.Bundle)
}
}
var r1 []*chart.Chart
if rf, ok := ret.Get(1).(func(io.Reader) []*chart.Chart); ok {
r1 = rf(_a0)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).([]*chart.Chart)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(io.Reader) error); ok {
r2 = rf(_a0)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}