github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/views.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // Views is an autogenerated mock type for the Views type 8 type Views struct { 9 mock.Mock 10 } 11 12 // Retrieve provides a mock function with given fields: action 13 func (_m *Views) Retrieve(action uint8) (uint64, error) { 14 ret := _m.Called(action) 15 16 var r0 uint64 17 if rf, ok := ret.Get(0).(func(uint8) uint64); ok { 18 r0 = rf(action) 19 } else { 20 r0 = ret.Get(0).(uint64) 21 } 22 23 var r1 error 24 if rf, ok := ret.Get(1).(func(uint8) error); ok { 25 r1 = rf(action) 26 } else { 27 r1 = ret.Error(1) 28 } 29 30 return r0, r1 31 } 32 33 // Store provides a mock function with given fields: action, view 34 func (_m *Views) Store(action uint8, view uint64) error { 35 ret := _m.Called(action, view) 36 37 var r0 error 38 if rf, ok := ret.Get(0).(func(uint8, uint64) error); ok { 39 r0 = rf(action, view) 40 } else { 41 r0 = ret.Error(0) 42 } 43 44 return r0 45 }