github.com/openfga/openfga@v1.5.4-rc1/internal/graph/mock_check_resolver.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: interface.go 3 // 4 // Generated by this command: 5 // 6 // mockgen -source interface.go -destination ./mock_check_resolver.go -package graph CheckResolver 7 // 8 9 // Package graph is a generated GoMock package. 10 package graph 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockCheckResolver is a mock of CheckResolver interface. 20 type MockCheckResolver struct { 21 ctrl *gomock.Controller 22 recorder *MockCheckResolverMockRecorder 23 } 24 25 // MockCheckResolverMockRecorder is the mock recorder for MockCheckResolver. 26 type MockCheckResolverMockRecorder struct { 27 mock *MockCheckResolver 28 } 29 30 // NewMockCheckResolver creates a new mock instance. 31 func NewMockCheckResolver(ctrl *gomock.Controller) *MockCheckResolver { 32 mock := &MockCheckResolver{ctrl: ctrl} 33 mock.recorder = &MockCheckResolverMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockCheckResolver) EXPECT() *MockCheckResolverMockRecorder { 39 return m.recorder 40 } 41 42 // Close mocks base method. 43 func (m *MockCheckResolver) Close() { 44 m.ctrl.T.Helper() 45 m.ctrl.Call(m, "Close") 46 } 47 48 // Close indicates an expected call of Close. 49 func (mr *MockCheckResolverMockRecorder) Close() *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCheckResolver)(nil).Close)) 52 } 53 54 // ResolveCheck mocks base method. 55 func (m *MockCheckResolver) ResolveCheck(ctx context.Context, req *ResolveCheckRequest) (*ResolveCheckResponse, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "ResolveCheck", ctx, req) 58 ret0, _ := ret[0].(*ResolveCheckResponse) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // ResolveCheck indicates an expected call of ResolveCheck. 64 func (mr *MockCheckResolverMockRecorder) ResolveCheck(ctx, req any) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveCheck", reflect.TypeOf((*MockCheckResolver)(nil).ResolveCheck), ctx, req) 67 }