lib/validator/mock_validator.go (33 lines of code) (raw):

// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by MockGen. DO NOT EDIT. // Source: validator.go package validator import ( "context" "reflect" "github.com/golang/mock/gomock" /* copybara-comment */ "github.com/GoogleCloudPlatform/healthcare-federated-access-services/lib/ga4gh" /* copybara-comment: ga4gh */ ) // MockValidator is a mock of Validator interface type MockValidator struct { ctrl *gomock.Controller recorder *MockValidatorMockRecorder } // MockValidatorMockRecorder is the mock recorder for MockValidator type MockValidatorMockRecorder struct { mock *MockValidator } // NewMockValidator creates a new mock instance func NewMockValidator(ctrl *gomock.Controller) *MockValidator { mock := &MockValidator{ctrl: ctrl} mock.recorder = &MockValidatorMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use func (m *MockValidator) EXPECT() *MockValidatorMockRecorder { return m.recorder } // Validate mocks base method func (m *MockValidator) Validate(ctx context.Context, identity *ga4gh.Identity) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Validate", ctx, identity) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // Validate indicates an expected call of Validate func (mr *MockValidatorMockRecorder) Validate(ctx, identity interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockValidator)(nil).Validate), ctx, identity) }