github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mempool/mock/incorporated_result_seals.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mempool
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/model/flow"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // IncorporatedResultSeals is an autogenerated mock type for the IncorporatedResultSeals type
    12  type IncorporatedResultSeals struct {
    13  	mock.Mock
    14  }
    15  
    16  // Add provides a mock function with given fields: irSeal
    17  func (_m *IncorporatedResultSeals) Add(irSeal *flow.IncorporatedResultSeal) (bool, error) {
    18  	ret := _m.Called(irSeal)
    19  
    20  	var r0 bool
    21  	var r1 error
    22  	if rf, ok := ret.Get(0).(func(*flow.IncorporatedResultSeal) (bool, error)); ok {
    23  		return rf(irSeal)
    24  	}
    25  	if rf, ok := ret.Get(0).(func(*flow.IncorporatedResultSeal) bool); ok {
    26  		r0 = rf(irSeal)
    27  	} else {
    28  		r0 = ret.Get(0).(bool)
    29  	}
    30  
    31  	if rf, ok := ret.Get(1).(func(*flow.IncorporatedResultSeal) error); ok {
    32  		r1 = rf(irSeal)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // All provides a mock function with given fields:
    41  func (_m *IncorporatedResultSeals) All() []*flow.IncorporatedResultSeal {
    42  	ret := _m.Called()
    43  
    44  	var r0 []*flow.IncorporatedResultSeal
    45  	if rf, ok := ret.Get(0).(func() []*flow.IncorporatedResultSeal); ok {
    46  		r0 = rf()
    47  	} else {
    48  		if ret.Get(0) != nil {
    49  			r0 = ret.Get(0).([]*flow.IncorporatedResultSeal)
    50  		}
    51  	}
    52  
    53  	return r0
    54  }
    55  
    56  // ByID provides a mock function with given fields: _a0
    57  func (_m *IncorporatedResultSeals) ByID(_a0 flow.Identifier) (*flow.IncorporatedResultSeal, bool) {
    58  	ret := _m.Called(_a0)
    59  
    60  	var r0 *flow.IncorporatedResultSeal
    61  	var r1 bool
    62  	if rf, ok := ret.Get(0).(func(flow.Identifier) (*flow.IncorporatedResultSeal, bool)); ok {
    63  		return rf(_a0)
    64  	}
    65  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.IncorporatedResultSeal); ok {
    66  		r0 = rf(_a0)
    67  	} else {
    68  		if ret.Get(0) != nil {
    69  			r0 = ret.Get(0).(*flow.IncorporatedResultSeal)
    70  		}
    71  	}
    72  
    73  	if rf, ok := ret.Get(1).(func(flow.Identifier) bool); ok {
    74  		r1 = rf(_a0)
    75  	} else {
    76  		r1 = ret.Get(1).(bool)
    77  	}
    78  
    79  	return r0, r1
    80  }
    81  
    82  // Clear provides a mock function with given fields:
    83  func (_m *IncorporatedResultSeals) Clear() {
    84  	_m.Called()
    85  }
    86  
    87  // Limit provides a mock function with given fields:
    88  func (_m *IncorporatedResultSeals) Limit() uint {
    89  	ret := _m.Called()
    90  
    91  	var r0 uint
    92  	if rf, ok := ret.Get(0).(func() uint); ok {
    93  		r0 = rf()
    94  	} else {
    95  		r0 = ret.Get(0).(uint)
    96  	}
    97  
    98  	return r0
    99  }
   100  
   101  // PruneUpToHeight provides a mock function with given fields: height
   102  func (_m *IncorporatedResultSeals) PruneUpToHeight(height uint64) error {
   103  	ret := _m.Called(height)
   104  
   105  	var r0 error
   106  	if rf, ok := ret.Get(0).(func(uint64) error); ok {
   107  		r0 = rf(height)
   108  	} else {
   109  		r0 = ret.Error(0)
   110  	}
   111  
   112  	return r0
   113  }
   114  
   115  // Remove provides a mock function with given fields: incorporatedResultID
   116  func (_m *IncorporatedResultSeals) Remove(incorporatedResultID flow.Identifier) bool {
   117  	ret := _m.Called(incorporatedResultID)
   118  
   119  	var r0 bool
   120  	if rf, ok := ret.Get(0).(func(flow.Identifier) bool); ok {
   121  		r0 = rf(incorporatedResultID)
   122  	} else {
   123  		r0 = ret.Get(0).(bool)
   124  	}
   125  
   126  	return r0
   127  }
   128  
   129  // Size provides a mock function with given fields:
   130  func (_m *IncorporatedResultSeals) Size() uint {
   131  	ret := _m.Called()
   132  
   133  	var r0 uint
   134  	if rf, ok := ret.Get(0).(func() uint); ok {
   135  		r0 = rf()
   136  	} else {
   137  		r0 = ret.Get(0).(uint)
   138  	}
   139  
   140  	return r0
   141  }
   142  
   143  type mockConstructorTestingTNewIncorporatedResultSeals interface {
   144  	mock.TestingT
   145  	Cleanup(func())
   146  }
   147  
   148  // NewIncorporatedResultSeals creates a new instance of IncorporatedResultSeals. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   149  func NewIncorporatedResultSeals(t mockConstructorTestingTNewIncorporatedResultSeals) *IncorporatedResultSeals {
   150  	mock := &IncorporatedResultSeals{}
   151  	mock.Mock.Test(t)
   152  
   153  	t.Cleanup(func() { mock.AssertExpectations(t) })
   154  
   155  	return mock
   156  }