github.com/koko1123/flow-go-1@v0.29.6/module/mock/qc_contract_client.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	context "context"
     7  
     8  	model "github.com/koko1123/flow-go-1/consensus/hotstuff/model"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // QCContractClient is an autogenerated mock type for the QCContractClient type
    13  type QCContractClient struct {
    14  	mock.Mock
    15  }
    16  
    17  // SubmitVote provides a mock function with given fields: ctx, vote
    18  func (_m *QCContractClient) SubmitVote(ctx context.Context, vote *model.Vote) error {
    19  	ret := _m.Called(ctx, vote)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(context.Context, *model.Vote) error); ok {
    23  		r0 = rf(ctx, vote)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Voted provides a mock function with given fields: ctx
    32  func (_m *QCContractClient) Voted(ctx context.Context) (bool, error) {
    33  	ret := _m.Called(ctx)
    34  
    35  	var r0 bool
    36  	if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
    37  		r0 = rf(ctx)
    38  	} else {
    39  		r0 = ret.Get(0).(bool)
    40  	}
    41  
    42  	var r1 error
    43  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
    44  		r1 = rf(ctx)
    45  	} else {
    46  		r1 = ret.Error(1)
    47  	}
    48  
    49  	return r0, r1
    50  }
    51  
    52  type mockConstructorTestingTNewQCContractClient interface {
    53  	mock.TestingT
    54  	Cleanup(func())
    55  }
    56  
    57  // NewQCContractClient creates a new instance of QCContractClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    58  func NewQCContractClient(t mockConstructorTestingTNewQCContractClient) *QCContractClient {
    59  	mock := &QCContractClient{}
    60  	mock.Mock.Test(t)
    61  
    62  	t.Cleanup(func() { mock.AssertExpectations(t) })
    63  
    64  	return mock
    65  }