/
juju-log_mock.go
84 lines (71 loc) · 2.67 KB
/
juju-log_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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/worker/uniter/runner/jujuc (interfaces: JujuLogContext)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/juju-log_mock.go github.com/juju/juju/worker/uniter/runner/jujuc JujuLogContext
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
jujuc "github.com/juju/juju/worker/uniter/runner/jujuc"
loggo "github.com/juju/loggo"
gomock "go.uber.org/mock/gomock"
)
// MockJujuLogContext is a mock of JujuLogContext interface.
type MockJujuLogContext struct {
ctrl *gomock.Controller
recorder *MockJujuLogContextMockRecorder
}
// MockJujuLogContextMockRecorder is the mock recorder for MockJujuLogContext.
type MockJujuLogContextMockRecorder struct {
mock *MockJujuLogContext
}
// NewMockJujuLogContext creates a new mock instance.
func NewMockJujuLogContext(ctrl *gomock.Controller) *MockJujuLogContext {
mock := &MockJujuLogContext{ctrl: ctrl}
mock.recorder = &MockJujuLogContextMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockJujuLogContext) EXPECT() *MockJujuLogContextMockRecorder {
return m.recorder
}
// GetLogger mocks base method.
func (m *MockJujuLogContext) GetLogger(arg0 string) loggo.Logger {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLogger", arg0)
ret0, _ := ret[0].(loggo.Logger)
return ret0
}
// GetLogger indicates an expected call of GetLogger.
func (mr *MockJujuLogContextMockRecorder) GetLogger(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogger", reflect.TypeOf((*MockJujuLogContext)(nil).GetLogger), arg0)
}
// HookRelation mocks base method.
func (m *MockJujuLogContext) HookRelation() (jujuc.ContextRelation, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HookRelation")
ret0, _ := ret[0].(jujuc.ContextRelation)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// HookRelation indicates an expected call of HookRelation.
func (mr *MockJujuLogContextMockRecorder) HookRelation() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HookRelation", reflect.TypeOf((*MockJujuLogContext)(nil).HookRelation))
}
// UnitName mocks base method.
func (m *MockJujuLogContext) UnitName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnitName")
ret0, _ := ret[0].(string)
return ret0
}
// UnitName indicates an expected call of UnitName.
func (mr *MockJujuLogContextMockRecorder) UnitName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnitName", reflect.TypeOf((*MockJujuLogContext)(nil).UnitName))
}