github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/secure_dialer.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	cluster "github.com/hyperledger/fabric/orderer/common/cluster"
     7  	grpc "google.golang.org/grpc"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // SecureDialer is an autogenerated mock type for the SecureDialer type
    13  type SecureDialer struct {
    14  	mock.Mock
    15  }
    16  
    17  // Dial provides a mock function with given fields: address, verifyFunc
    18  func (_m *SecureDialer) Dial(address string, verifyFunc cluster.RemoteVerifier) (*grpc.ClientConn, error) {
    19  	ret := _m.Called(address, verifyFunc)
    20  
    21  	var r0 *grpc.ClientConn
    22  	if rf, ok := ret.Get(0).(func(string, cluster.RemoteVerifier) *grpc.ClientConn); ok {
    23  		r0 = rf(address, verifyFunc)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*grpc.ClientConn)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(string, cluster.RemoteVerifier) error); ok {
    32  		r1 = rf(address, verifyFunc)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }