github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/execution/mock/executed_finalized_wal.go (about)

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