github.com/canhui/fabric_ca2_2@v2.0.0-alpha+incompatible/lib/client/credential/x509/mocks/Identity.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 // Code generated by mockery v1.0.0 7 8 package mocks 9 10 import api "github.com/hyperledger/fabric-ca/api" 11 import mock "github.com/stretchr/testify/mock" 12 13 // Identity is an autogenerated mock type for the Identity type 14 type Identity struct { 15 mock.Mock 16 } 17 18 // Revoke provides a mock function with given fields: req 19 func (_m *Identity) Revoke(req *api.RevocationRequest) (*api.RevocationResponse, error) { 20 ret := _m.Called(req) 21 22 var r0 *api.RevocationResponse 23 if rf, ok := ret.Get(0).(func(*api.RevocationRequest) *api.RevocationResponse); ok { 24 r0 = rf(req) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(*api.RevocationResponse) 28 } 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func(*api.RevocationRequest) error); ok { 33 r1 = rf(req) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 }