/
bundledatasource_mock.go
83 lines (70 loc) · 2.66 KB
/
bundledatasource_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
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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/cmd/juju/application/bundle (interfaces: BundleDataSource)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/bundledatasource_mock.go github.com/juju/juju/cmd/juju/application/bundle BundleDataSource
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
charm "github.com/juju/charm/v12"
gomock "go.uber.org/mock/gomock"
)
// MockBundleDataSource is a mock of BundleDataSource interface.
type MockBundleDataSource struct {
ctrl *gomock.Controller
recorder *MockBundleDataSourceMockRecorder
}
// MockBundleDataSourceMockRecorder is the mock recorder for MockBundleDataSource.
type MockBundleDataSourceMockRecorder struct {
mock *MockBundleDataSource
}
// NewMockBundleDataSource creates a new mock instance.
func NewMockBundleDataSource(ctrl *gomock.Controller) *MockBundleDataSource {
mock := &MockBundleDataSource{ctrl: ctrl}
mock.recorder = &MockBundleDataSourceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBundleDataSource) EXPECT() *MockBundleDataSourceMockRecorder {
return m.recorder
}
// BasePath mocks base method.
func (m *MockBundleDataSource) BasePath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BasePath")
ret0, _ := ret[0].(string)
return ret0
}
// BasePath indicates an expected call of BasePath.
func (mr *MockBundleDataSourceMockRecorder) BasePath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BasePath", reflect.TypeOf((*MockBundleDataSource)(nil).BasePath))
}
// Parts mocks base method.
func (m *MockBundleDataSource) Parts() []*charm.BundleDataPart {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Parts")
ret0, _ := ret[0].([]*charm.BundleDataPart)
return ret0
}
// Parts indicates an expected call of Parts.
func (mr *MockBundleDataSourceMockRecorder) Parts() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parts", reflect.TypeOf((*MockBundleDataSource)(nil).Parts))
}
// ResolveInclude mocks base method.
func (m *MockBundleDataSource) ResolveInclude(arg0 string) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveInclude", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ResolveInclude indicates an expected call of ResolveInclude.
func (mr *MockBundleDataSourceMockRecorder) ResolveInclude(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveInclude", reflect.TypeOf((*MockBundleDataSource)(nil).ResolveInclude), arg0)
}