github.com/microsoft/moc@v0.17.1/pkg/certs/mock/mock_certificateAuthority.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/microsoft/moc/pkg/certs (interfaces: Revocation) 3 4 // Package mock_certs is a generated GoMock package. 5 package mock_certs 6 7 import ( 8 x509 "crypto/x509" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 ) 13 14 // MockRevocation is a mock of Revocation interface. 15 type MockRevocation struct { 16 ctrl *gomock.Controller 17 recorder *MockRevocationMockRecorder 18 } 19 20 // MockRevocationMockRecorder is the mock recorder for MockRevocation. 21 type MockRevocationMockRecorder struct { 22 mock *MockRevocation 23 } 24 25 // NewMockRevocation creates a new mock instance. 26 func NewMockRevocation(ctrl *gomock.Controller) *MockRevocation { 27 mock := &MockRevocation{ctrl: ctrl} 28 mock.recorder = &MockRevocationMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockRevocation) EXPECT() *MockRevocationMockRecorder { 34 return m.recorder 35 } 36 37 // IsRevoked mocks base method. 38 func (m *MockRevocation) IsRevoked(arg0 *x509.Certificate) error { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "IsRevoked", arg0) 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // IsRevoked indicates an expected call of IsRevoked. 46 func (mr *MockRevocationMockRecorder) IsRevoked(arg0 interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRevoked", reflect.TypeOf((*MockRevocation)(nil).IsRevoked), arg0) 49 }