github.com/Finschia/ostracon@v1.1.5/state/mocks/evidence_pool.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	state "github.com/Finschia/ostracon/state"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	types "github.com/Finschia/ostracon/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  	var r1 int64
    51  	if rf, ok := ret.Get(0).(func(int64) ([]types.Evidence, int64)); ok {
    52  		return rf(maxBytes)
    53  	}
    54  	if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
    55  		r0 = rf(maxBytes)
    56  	} else {
    57  		if ret.Get(0) != nil {
    58  			r0 = ret.Get(0).([]types.Evidence)
    59  		}
    60  	}
    61  
    62  	if rf, ok := ret.Get(1).(func(int64) int64); ok {
    63  		r1 = rf(maxBytes)
    64  	} else {
    65  		r1 = ret.Get(1).(int64)
    66  	}
    67  
    68  	return r0, r1
    69  }
    70  
    71  // Update provides a mock function with given fields: _a0, _a1
    72  func (_m *EvidencePool) Update(_a0 state.State, _a1 types.EvidenceList) {
    73  	_m.Called(_a0, _a1)
    74  }
    75  
    76  // NewEvidencePool creates a new instance of EvidencePool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    77  // The first argument is typically a *testing.T value.
    78  func NewEvidencePool(t interface {
    79  	mock.TestingT
    80  	Cleanup(func())
    81  }) *EvidencePool {
    82  	mock := &EvidencePool{}
    83  	mock.Mock.Test(t)
    84  
    85  	t.Cleanup(func() { mock.AssertExpectations(t) })
    86  
    87  	return mock
    88  }