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

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	crypto "github.com/onflow/crypto"
     7  	flow "github.com/onflow/flow-go/model/flow"
     8  
     9  	messages "github.com/onflow/flow-go/model/messages"
    10  
    11  	mock "github.com/stretchr/testify/mock"
    12  )
    13  
    14  // DKGContractClient is an autogenerated mock type for the DKGContractClient type
    15  type DKGContractClient struct {
    16  	mock.Mock
    17  }
    18  
    19  // Broadcast provides a mock function with given fields: msg
    20  func (_m *DKGContractClient) Broadcast(msg messages.BroadcastDKGMessage) error {
    21  	ret := _m.Called(msg)
    22  
    23  	var r0 error
    24  	if rf, ok := ret.Get(0).(func(messages.BroadcastDKGMessage) error); ok {
    25  		r0 = rf(msg)
    26  	} else {
    27  		r0 = ret.Error(0)
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // ReadBroadcast provides a mock function with given fields: fromIndex, referenceBlock
    34  func (_m *DKGContractClient) ReadBroadcast(fromIndex uint, referenceBlock flow.Identifier) ([]messages.BroadcastDKGMessage, error) {
    35  	ret := _m.Called(fromIndex, referenceBlock)
    36  
    37  	var r0 []messages.BroadcastDKGMessage
    38  	var r1 error
    39  	if rf, ok := ret.Get(0).(func(uint, flow.Identifier) ([]messages.BroadcastDKGMessage, error)); ok {
    40  		return rf(fromIndex, referenceBlock)
    41  	}
    42  	if rf, ok := ret.Get(0).(func(uint, flow.Identifier) []messages.BroadcastDKGMessage); ok {
    43  		r0 = rf(fromIndex, referenceBlock)
    44  	} else {
    45  		if ret.Get(0) != nil {
    46  			r0 = ret.Get(0).([]messages.BroadcastDKGMessage)
    47  		}
    48  	}
    49  
    50  	if rf, ok := ret.Get(1).(func(uint, flow.Identifier) error); ok {
    51  		r1 = rf(fromIndex, referenceBlock)
    52  	} else {
    53  		r1 = ret.Error(1)
    54  	}
    55  
    56  	return r0, r1
    57  }
    58  
    59  // SubmitResult provides a mock function with given fields: _a0, _a1
    60  func (_m *DKGContractClient) SubmitResult(_a0 crypto.PublicKey, _a1 []crypto.PublicKey) error {
    61  	ret := _m.Called(_a0, _a1)
    62  
    63  	var r0 error
    64  	if rf, ok := ret.Get(0).(func(crypto.PublicKey, []crypto.PublicKey) error); ok {
    65  		r0 = rf(_a0, _a1)
    66  	} else {
    67  		r0 = ret.Error(0)
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  type mockConstructorTestingTNewDKGContractClient interface {
    74  	mock.TestingT
    75  	Cleanup(func())
    76  }
    77  
    78  // NewDKGContractClient creates a new instance of DKGContractClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    79  func NewDKGContractClient(t mockConstructorTestingTNewDKGContractClient) *DKGContractClient {
    80  	mock := &DKGContractClient{}
    81  	mock.Mock.Test(t)
    82  
    83  	t.Cleanup(func() { mock.AssertExpectations(t) })
    84  
    85  	return mock
    86  }