github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/qc_contract_client.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	context "context"
     7  
     8  	model "github.com/onflow/flow-go/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  	var r1 error
    37  	if rf, ok := ret.Get(0).(func(context.Context) (bool, error)); ok {
    38  		return rf(ctx)
    39  	}
    40  	if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
    41  		r0 = rf(ctx)
    42  	} else {
    43  		r0 = ret.Get(0).(bool)
    44  	}
    45  
    46  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
    47  		r1 = rf(ctx)
    48  	} else {
    49  		r1 = ret.Error(1)
    50  	}
    51  
    52  	return r0, r1
    53  }
    54  
    55  type mockConstructorTestingTNewQCContractClient interface {
    56  	mock.TestingT
    57  	Cleanup(func())
    58  }
    59  
    60  // 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.
    61  func NewQCContractClient(t mockConstructorTestingTNewQCContractClient) *QCContractClient {
    62  	mock := &QCContractClient{}
    63  	mock.Mock.Test(t)
    64  
    65  	t.Cleanup(func() { mock.AssertExpectations(t) })
    66  
    67  	return mock
    68  }