github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/committer/txvalidator/mocks/validator.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	common "github.com/hyperledger/fabric-protos-go/common"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Validator is an autogenerated mock type for the Validator type
    11  type Validator struct {
    12  	mock.Mock
    13  }
    14  
    15  // Validate provides a mock function with given fields: block
    16  func (_m *Validator) Validate(block *common.Block) error {
    17  	ret := _m.Called(block)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(*common.Block) error); ok {
    21  		r0 = rf(block)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }