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

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