gitlab.com/gpdionisio/tendermint@v0.34.19-dev2/state/mocks/evidence_pool.go (about)

     1  // Code generated by mockery 2.9.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	state "github.com/tendermint/tendermint/state"
     9  
    10  	types "github.com/tendermint/tendermint/types"
    11  )
    12  
    13  // EvidencePool is an autogenerated mock type for the EvidencePool type
    14  type EvidencePool struct {
    15  	mock.Mock
    16  }
    17  
    18  // AddEvidence provides a mock function with given fields: _a0
    19  func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error {
    20  	ret := _m.Called(_a0)
    21  
    22  	var r0 error
    23  	if rf, ok := ret.Get(0).(func(types.Evidence) error); ok {
    24  		r0 = rf(_a0)
    25  	} else {
    26  		r0 = ret.Error(0)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // CheckEvidence provides a mock function with given fields: _a0
    33  func (_m *EvidencePool) CheckEvidence(_a0 types.EvidenceList) error {
    34  	ret := _m.Called(_a0)
    35  
    36  	var r0 error
    37  	if rf, ok := ret.Get(0).(func(types.EvidenceList) error); ok {
    38  		r0 = rf(_a0)
    39  	} else {
    40  		r0 = ret.Error(0)
    41  	}
    42  
    43  	return r0
    44  }
    45  
    46  // PendingEvidence provides a mock function with given fields: maxBytes
    47  func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) {
    48  	ret := _m.Called(maxBytes)
    49  
    50  	var r0 []types.Evidence
    51  	if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
    52  		r0 = rf(maxBytes)
    53  	} else {
    54  		if ret.Get(0) != nil {
    55  			r0 = ret.Get(0).([]types.Evidence)
    56  		}
    57  	}
    58  
    59  	var r1 int64
    60  	if rf, ok := ret.Get(1).(func(int64) int64); ok {
    61  		r1 = rf(maxBytes)
    62  	} else {
    63  		r1 = ret.Get(1).(int64)
    64  	}
    65  
    66  	return r0, r1
    67  }
    68  
    69  // Update provides a mock function with given fields: _a0, _a1
    70  func (_m *EvidencePool) Update(_a0 state.State, _a1 types.EvidenceList) {
    71  	_m.Called(_a0, _a1)
    72  }