github.com/koko1123/flow-go-1@v0.29.6/module/mempool/mock/receipt_filter.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mempool
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // ReceiptFilter is an autogenerated mock type for the ReceiptFilter type
    12  type ReceiptFilter struct {
    13  	mock.Mock
    14  }
    15  
    16  // Execute provides a mock function with given fields: receipt
    17  func (_m *ReceiptFilter) Execute(receipt *flow.ExecutionReceipt) bool {
    18  	ret := _m.Called(receipt)
    19  
    20  	var r0 bool
    21  	if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt) bool); ok {
    22  		r0 = rf(receipt)
    23  	} else {
    24  		r0 = ret.Get(0).(bool)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  type mockConstructorTestingTNewReceiptFilter interface {
    31  	mock.TestingT
    32  	Cleanup(func())
    33  }
    34  
    35  // NewReceiptFilter creates a new instance of ReceiptFilter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    36  func NewReceiptFilter(t mockConstructorTestingTNewReceiptFilter) *ReceiptFilter {
    37  	mock := &ReceiptFilter{}
    38  	mock.Mock.Test(t)
    39  
    40  	t.Cleanup(func() { mock.AssertExpectations(t) })
    41  
    42  	return mock
    43  }