github.com/hxx258456/fabric-ca-gm@v0.0.3-0.20221111064038-a268ad7e3a37/lib/client/credential/x509/mocks/Client.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 ( 11 credential "github.com/hxx258456/fabric-ca-gm/lib/client/credential" 12 bccsp "github.com/hxx258456/fabric-gm/bccsp" 13 mock "github.com/stretchr/testify/mock" 14 15 x509 "github.com/hxx258456/fabric-ca-gm/lib/client/credential/x509" 16 ) 17 18 // Client is an autogenerated mock type for the Client type 19 type Client struct { 20 mock.Mock 21 } 22 23 // GetCSP provides a mock function with given fields: 24 func (_m *Client) GetCSP() bccsp.BCCSP { 25 ret := _m.Called() 26 27 var r0 bccsp.BCCSP 28 if rf, ok := ret.Get(0).(func() bccsp.BCCSP); ok { 29 r0 = rf() 30 } else { 31 if ret.Get(0) != nil { 32 r0 = ret.Get(0).(bccsp.BCCSP) 33 } 34 } 35 36 return r0 37 } 38 39 // NewX509Identity provides a mock function with given fields: name, creds 40 func (_m *Client) NewX509Identity(name string, creds []credential.Credential) x509.Identity { 41 ret := _m.Called(name, creds) 42 43 var r0 x509.Identity 44 if rf, ok := ret.Get(0).(func(string, []credential.Credential) x509.Identity); ok { 45 r0 = rf(name, creds) 46 } else { 47 if ret.Get(0) != nil { 48 r0 = ret.Get(0).(x509.Identity) 49 } 50 } 51 52 return r0 53 }