github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/mocks/vote_processor.go (about)

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