github.com/koko1123/flow-go-1@v0.29.6/storage/mock/my_execution_receipts.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	storage "github.com/koko1123/flow-go-1/storage"
    10  )
    11  
    12  // MyExecutionReceipts is an autogenerated mock type for the MyExecutionReceipts type
    13  type MyExecutionReceipts struct {
    14  	mock.Mock
    15  }
    16  
    17  // BatchRemoveIndexByBlockID provides a mock function with given fields: blockID, batch
    18  func (_m *MyExecutionReceipts) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.BatchStorage) error {
    19  	ret := _m.Called(blockID, batch)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(flow.Identifier, storage.BatchStorage) error); ok {
    23  		r0 = rf(blockID, batch)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // BatchStoreMyReceipt provides a mock function with given fields: receipt, batch
    32  func (_m *MyExecutionReceipts) BatchStoreMyReceipt(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error {
    33  	ret := _m.Called(receipt, batch)
    34  
    35  	var r0 error
    36  	if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt, storage.BatchStorage) error); ok {
    37  		r0 = rf(receipt, batch)
    38  	} else {
    39  		r0 = ret.Error(0)
    40  	}
    41  
    42  	return r0
    43  }
    44  
    45  // MyReceipt provides a mock function with given fields: blockID
    46  func (_m *MyExecutionReceipts) MyReceipt(blockID flow.Identifier) (*flow.ExecutionReceipt, error) {
    47  	ret := _m.Called(blockID)
    48  
    49  	var r0 *flow.ExecutionReceipt
    50  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.ExecutionReceipt); ok {
    51  		r0 = rf(blockID)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).(*flow.ExecutionReceipt)
    55  		}
    56  	}
    57  
    58  	var r1 error
    59  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    60  		r1 = rf(blockID)
    61  	} else {
    62  		r1 = ret.Error(1)
    63  	}
    64  
    65  	return r0, r1
    66  }
    67  
    68  // StoreMyReceipt provides a mock function with given fields: receipt
    69  func (_m *MyExecutionReceipts) StoreMyReceipt(receipt *flow.ExecutionReceipt) error {
    70  	ret := _m.Called(receipt)
    71  
    72  	var r0 error
    73  	if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt) error); ok {
    74  		r0 = rf(receipt)
    75  	} else {
    76  		r0 = ret.Error(0)
    77  	}
    78  
    79  	return r0
    80  }
    81  
    82  type mockConstructorTestingTNewMyExecutionReceipts interface {
    83  	mock.TestingT
    84  	Cleanup(func())
    85  }
    86  
    87  // NewMyExecutionReceipts creates a new instance of MyExecutionReceipts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    88  func NewMyExecutionReceipts(t mockConstructorTestingTNewMyExecutionReceipts) *MyExecutionReceipts {
    89  	mock := &MyExecutionReceipts{}
    90  	mock.Mock.Test(t)
    91  
    92  	t.Cleanup(func() { mock.AssertExpectations(t) })
    93  
    94  	return mock
    95  }