github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/common/crossmodel/mocks/bakery_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/go-macaroon-bakery/macaroon-bakery/v3/bakery (interfaces: FirstPartyCaveatChecker) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/bakery_mock.go github.com/go-macaroon-bakery/macaroon-bakery/v3/bakery FirstPartyCaveatChecker 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 checkers "github.com/go-macaroon-bakery/macaroon-bakery/v3/bakery/checkers" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockFirstPartyCaveatChecker is a mock of FirstPartyCaveatChecker interface. 21 type MockFirstPartyCaveatChecker struct { 22 ctrl *gomock.Controller 23 recorder *MockFirstPartyCaveatCheckerMockRecorder 24 } 25 26 // MockFirstPartyCaveatCheckerMockRecorder is the mock recorder for MockFirstPartyCaveatChecker. 27 type MockFirstPartyCaveatCheckerMockRecorder struct { 28 mock *MockFirstPartyCaveatChecker 29 } 30 31 // NewMockFirstPartyCaveatChecker creates a new mock instance. 32 func NewMockFirstPartyCaveatChecker(ctrl *gomock.Controller) *MockFirstPartyCaveatChecker { 33 mock := &MockFirstPartyCaveatChecker{ctrl: ctrl} 34 mock.recorder = &MockFirstPartyCaveatCheckerMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockFirstPartyCaveatChecker) EXPECT() *MockFirstPartyCaveatCheckerMockRecorder { 40 return m.recorder 41 } 42 43 // CheckFirstPartyCaveat mocks base method. 44 func (m *MockFirstPartyCaveatChecker) CheckFirstPartyCaveat(arg0 context.Context, arg1 string) error { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "CheckFirstPartyCaveat", arg0, arg1) 47 ret0, _ := ret[0].(error) 48 return ret0 49 } 50 51 // CheckFirstPartyCaveat indicates an expected call of CheckFirstPartyCaveat. 52 func (mr *MockFirstPartyCaveatCheckerMockRecorder) CheckFirstPartyCaveat(arg0, arg1 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckFirstPartyCaveat", reflect.TypeOf((*MockFirstPartyCaveatChecker)(nil).CheckFirstPartyCaveat), arg0, arg1) 55 } 56 57 // Namespace mocks base method. 58 func (m *MockFirstPartyCaveatChecker) Namespace() *checkers.Namespace { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "Namespace") 61 ret0, _ := ret[0].(*checkers.Namespace) 62 return ret0 63 } 64 65 // Namespace indicates an expected call of Namespace. 66 func (mr *MockFirstPartyCaveatCheckerMockRecorder) Namespace() *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockFirstPartyCaveatChecker)(nil).Namespace)) 69 }