github.com/arcology-network/consensus-engine@v1.9.0/state/mocks/evidence_pool.go (about)

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