/
meterstatus_mock.go
100 lines (85 loc) · 3.41 KB
/
meterstatus_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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/apiserver/facades/agent/meterstatus (interfaces: MeterStatusState)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/meterstatus_mock.go github.com/juju/juju/apiserver/facades/agent/meterstatus MeterStatusState
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
controller "github.com/juju/juju/controller"
state "github.com/juju/juju/state"
gomock "go.uber.org/mock/gomock"
)
// MockMeterStatusState is a mock of MeterStatusState interface.
type MockMeterStatusState struct {
ctrl *gomock.Controller
recorder *MockMeterStatusStateMockRecorder
}
// MockMeterStatusStateMockRecorder is the mock recorder for MockMeterStatusState.
type MockMeterStatusStateMockRecorder struct {
mock *MockMeterStatusState
}
// NewMockMeterStatusState creates a new mock instance.
func NewMockMeterStatusState(ctrl *gomock.Controller) *MockMeterStatusState {
mock := &MockMeterStatusState{ctrl: ctrl}
mock.recorder = &MockMeterStatusStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMeterStatusState) EXPECT() *MockMeterStatusStateMockRecorder {
return m.recorder
}
// Application mocks base method.
func (m *MockMeterStatusState) Application(arg0 string) (*state.Application, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Application", arg0)
ret0, _ := ret[0].(*state.Application)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Application indicates an expected call of Application.
func (mr *MockMeterStatusStateMockRecorder) Application(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockMeterStatusState)(nil).Application), arg0)
}
// ApplyOperation mocks base method.
func (m *MockMeterStatusState) ApplyOperation(arg0 state.ModelOperation) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ApplyOperation", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// ApplyOperation indicates an expected call of ApplyOperation.
func (mr *MockMeterStatusStateMockRecorder) ApplyOperation(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyOperation", reflect.TypeOf((*MockMeterStatusState)(nil).ApplyOperation), arg0)
}
// ControllerConfig mocks base method.
func (m *MockMeterStatusState) ControllerConfig() (controller.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ControllerConfig")
ret0, _ := ret[0].(controller.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ControllerConfig indicates an expected call of ControllerConfig.
func (mr *MockMeterStatusStateMockRecorder) ControllerConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerConfig", reflect.TypeOf((*MockMeterStatusState)(nil).ControllerConfig))
}
// Unit mocks base method.
func (m *MockMeterStatusState) Unit(arg0 string) (*state.Unit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Unit", arg0)
ret0, _ := ret[0].(*state.Unit)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Unit indicates an expected call of Unit.
func (mr *MockMeterStatusStateMockRecorder) Unit(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unit", reflect.TypeOf((*MockMeterStatusState)(nil).Unit), arg0)
}