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