go_study/fabric-main/orderer/consensus/smartbft/mocks/consenter_verifier.go

43 lines
1.1 KiB
Go

// Code generated by mockery v2.14.1. DO NOT EDIT.
package mocks
import (
protoutil "github.com/hyperledger/fabric/protoutil"
mock "github.com/stretchr/testify/mock"
)
// ConsenterVerifier is an autogenerated mock type for the ConsenterVerifier type
type ConsenterVerifier struct {
mock.Mock
}
// Evaluate provides a mock function with given fields: signatureSet
func (_m *ConsenterVerifier) Evaluate(signatureSet []*protoutil.SignedData) error {
ret := _m.Called(signatureSet)
var r0 error
if rf, ok := ret.Get(0).(func([]*protoutil.SignedData) error); ok {
r0 = rf(signatureSet)
} else {
r0 = ret.Error(0)
}
return r0
}
type mockConstructorTestingTNewConsenterVerifier interface {
mock.TestingT
Cleanup(func())
}
// NewConsenterVerifier creates a new instance of ConsenterVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewConsenterVerifier(t mockConstructorTestingTNewConsenterVerifier) *ConsenterVerifier {
mock := &ConsenterVerifier{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}