github.com/badrootd/celestia-core@v0.0.0-20240305091328-aa4207a4b25d/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/badrootd/celestia-core/state"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	types "github.com/badrootd/celestia-core/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  }
    72  
    73  type mockConstructorTestingTNewEvidencePool interface {
    74  	mock.TestingT
    75  	Cleanup(func())
    76  }
    77  
    78  // 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.
    79  func NewEvidencePool(t mockConstructorTestingTNewEvidencePool) *EvidencePool {
    80  	mock := &EvidencePool{}
    81  	mock.Mock.Test(t)
    82  
    83  	t.Cleanup(func() { mock.AssertExpectations(t) })
    84  
    85  	return mock
    86  }