github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/cluster_root_qc_voter.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  	mock "github.com/stretchr/testify/mock"
     9  
    10  	protocol "github.com/onflow/flow-go/state/protocol"
    11  )
    12  
    13  // ClusterRootQCVoter is an autogenerated mock type for the ClusterRootQCVoter type
    14  type ClusterRootQCVoter struct {
    15  	mock.Mock
    16  }
    17  
    18  // Vote provides a mock function with given fields: _a0, _a1
    19  func (_m *ClusterRootQCVoter) Vote(_a0 context.Context, _a1 protocol.Epoch) error {
    20  	ret := _m.Called(_a0, _a1)
    21  
    22  	var r0 error
    23  	if rf, ok := ret.Get(0).(func(context.Context, protocol.Epoch) error); ok {
    24  		r0 = rf(_a0, _a1)
    25  	} else {
    26  		r0 = ret.Error(0)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  type mockConstructorTestingTNewClusterRootQCVoter interface {
    33  	mock.TestingT
    34  	Cleanup(func())
    35  }
    36  
    37  // NewClusterRootQCVoter creates a new instance of ClusterRootQCVoter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    38  func NewClusterRootQCVoter(t mockConstructorTestingTNewClusterRootQCVoter) *ClusterRootQCVoter {
    39  	mock := &ClusterRootQCVoter{}
    40  	mock.Mock.Test(t)
    41  
    42  	t.Cleanup(func() { mock.AssertExpectations(t) })
    43  
    44  	return mock
    45  }