github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/uniter/runner/jujuc/context_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/worker/uniter/runner/jujuc (interfaces: ContextRelation) 3 4 // Package jujuc is a generated GoMock package. 5 package jujuc 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 params "github.com/juju/juju/apiserver/params" 12 relation "github.com/juju/juju/core/relation" 13 ) 14 15 // MockContextRelation is a mock of ContextRelation interface 16 type MockContextRelation struct { 17 ctrl *gomock.Controller 18 recorder *MockContextRelationMockRecorder 19 } 20 21 // MockContextRelationMockRecorder is the mock recorder for MockContextRelation 22 type MockContextRelationMockRecorder struct { 23 mock *MockContextRelation 24 } 25 26 // NewMockContextRelation creates a new mock instance 27 func NewMockContextRelation(ctrl *gomock.Controller) *MockContextRelation { 28 mock := &MockContextRelation{ctrl: ctrl} 29 mock.recorder = &MockContextRelationMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use 34 func (m *MockContextRelation) EXPECT() *MockContextRelationMockRecorder { 35 return m.recorder 36 } 37 38 // FakeId mocks base method 39 func (m *MockContextRelation) FakeId() string { 40 ret := m.ctrl.Call(m, "FakeId") 41 ret0, _ := ret[0].(string) 42 return ret0 43 } 44 45 // FakeId indicates an expected call of FakeId 46 func (mr *MockContextRelationMockRecorder) FakeId() *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FakeId", reflect.TypeOf((*MockContextRelation)(nil).FakeId)) 48 } 49 50 // Id mocks base method 51 func (m *MockContextRelation) Id() int { 52 ret := m.ctrl.Call(m, "Id") 53 ret0, _ := ret[0].(int) 54 return ret0 55 } 56 57 // Id indicates an expected call of Id 58 func (mr *MockContextRelationMockRecorder) Id() *gomock.Call { 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Id", reflect.TypeOf((*MockContextRelation)(nil).Id)) 60 } 61 62 // Name mocks base method 63 func (m *MockContextRelation) Name() string { 64 ret := m.ctrl.Call(m, "Name") 65 ret0, _ := ret[0].(string) 66 return ret0 67 } 68 69 // Name indicates an expected call of Name 70 func (mr *MockContextRelationMockRecorder) Name() *gomock.Call { 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockContextRelation)(nil).Name)) 72 } 73 74 // ReadSettings mocks base method 75 func (m *MockContextRelation) ReadSettings(arg0 string) (params.Settings, error) { 76 ret := m.ctrl.Call(m, "ReadSettings", arg0) 77 ret0, _ := ret[0].(params.Settings) 78 ret1, _ := ret[1].(error) 79 return ret0, ret1 80 } 81 82 // ReadSettings indicates an expected call of ReadSettings 83 func (mr *MockContextRelationMockRecorder) ReadSettings(arg0 interface{}) *gomock.Call { 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadSettings", reflect.TypeOf((*MockContextRelation)(nil).ReadSettings), arg0) 85 } 86 87 // SetStatus mocks base method 88 func (m *MockContextRelation) SetStatus(arg0 relation.Status) error { 89 ret := m.ctrl.Call(m, "SetStatus", arg0) 90 ret0, _ := ret[0].(error) 91 return ret0 92 } 93 94 // SetStatus indicates an expected call of SetStatus 95 func (mr *MockContextRelationMockRecorder) SetStatus(arg0 interface{}) *gomock.Call { 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStatus", reflect.TypeOf((*MockContextRelation)(nil).SetStatus), arg0) 97 } 98 99 // Settings mocks base method 100 func (m *MockContextRelation) Settings() (Settings, error) { 101 ret := m.ctrl.Call(m, "Settings") 102 ret0, _ := ret[0].(Settings) 103 ret1, _ := ret[1].(error) 104 return ret0, ret1 105 } 106 107 // Settings indicates an expected call of Settings 108 func (mr *MockContextRelationMockRecorder) Settings() *gomock.Call { 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Settings", reflect.TypeOf((*MockContextRelation)(nil).Settings)) 110 } 111 112 // Suspended mocks base method 113 func (m *MockContextRelation) Suspended() bool { 114 ret := m.ctrl.Call(m, "Suspended") 115 ret0, _ := ret[0].(bool) 116 return ret0 117 } 118 119 // Suspended indicates an expected call of Suspended 120 func (mr *MockContextRelationMockRecorder) Suspended() *gomock.Call { 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Suspended", reflect.TypeOf((*MockContextRelation)(nil).Suspended)) 122 } 123 124 // UnitNames mocks base method 125 func (m *MockContextRelation) UnitNames() []string { 126 ret := m.ctrl.Call(m, "UnitNames") 127 ret0, _ := ret[0].([]string) 128 return ret0 129 } 130 131 // UnitNames indicates an expected call of UnitNames 132 func (mr *MockContextRelationMockRecorder) UnitNames() *gomock.Call { 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnitNames", reflect.TypeOf((*MockContextRelation)(nil).UnitNames)) 134 }