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

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	grpc "google.golang.org/grpc"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	orderer "github.com/hyperledger/fabric-protos-go/orderer"
    13  )
    14  
    15  // ClusterClient is an autogenerated mock type for the ClusterClient type
    16  type ClusterClient struct {
    17  	mock.Mock
    18  }
    19  
    20  // Step provides a mock function with given fields: ctx, opts
    21  func (_m *ClusterClient) Step(ctx context.Context, opts ...grpc.CallOption) (orderer.Cluster_StepClient, error) {
    22  	_va := make([]interface{}, len(opts))
    23  	for _i := range opts {
    24  		_va[_i] = opts[_i]
    25  	}
    26  	var _ca []interface{}
    27  	_ca = append(_ca, ctx)
    28  	_ca = append(_ca, _va...)
    29  	ret := _m.Called(_ca...)
    30  
    31  	var r0 orderer.Cluster_StepClient
    32  	if rf, ok := ret.Get(0).(func(context.Context, ...grpc.CallOption) orderer.Cluster_StepClient); ok {
    33  		r0 = rf(ctx, opts...)
    34  	} else {
    35  		if ret.Get(0) != nil {
    36  			r0 = ret.Get(0).(orderer.Cluster_StepClient)
    37  		}
    38  	}
    39  
    40  	var r1 error
    41  	if rf, ok := ret.Get(1).(func(context.Context, ...grpc.CallOption) error); ok {
    42  		r1 = rf(ctx, opts...)
    43  	} else {
    44  		r1 = ret.Error(1)
    45  	}
    46  
    47  	return r0, r1
    48  }