github.com/koko1123/flow-go-1@v0.29.6/storage/mock/storage.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 // Storage is an autogenerated mock type for the Storage type 8 type Storage struct { 9 mock.Mock 10 } 11 12 // GetRegisters provides a mock function with given fields: registerIDs, stateCommitment 13 func (_m *Storage) GetRegisters(registerIDs [][]byte, stateCommitment []byte) ([][]byte, error) { 14 ret := _m.Called(registerIDs, stateCommitment) 15 16 var r0 [][]byte 17 if rf, ok := ret.Get(0).(func([][]byte, []byte) [][]byte); ok { 18 r0 = rf(registerIDs, stateCommitment) 19 } else { 20 if ret.Get(0) != nil { 21 r0 = ret.Get(0).([][]byte) 22 } 23 } 24 25 var r1 error 26 if rf, ok := ret.Get(1).(func([][]byte, []byte) error); ok { 27 r1 = rf(registerIDs, stateCommitment) 28 } else { 29 r1 = ret.Error(1) 30 } 31 32 return r0, r1 33 } 34 35 // GetRegistersWithProof provides a mock function with given fields: registerIDs, stateCommitment 36 func (_m *Storage) GetRegistersWithProof(registerIDs [][]byte, stateCommitment []byte) ([][]byte, [][]byte, error) { 37 ret := _m.Called(registerIDs, stateCommitment) 38 39 var r0 [][]byte 40 if rf, ok := ret.Get(0).(func([][]byte, []byte) [][]byte); ok { 41 r0 = rf(registerIDs, stateCommitment) 42 } else { 43 if ret.Get(0) != nil { 44 r0 = ret.Get(0).([][]byte) 45 } 46 } 47 48 var r1 [][]byte 49 if rf, ok := ret.Get(1).(func([][]byte, []byte) [][]byte); ok { 50 r1 = rf(registerIDs, stateCommitment) 51 } else { 52 if ret.Get(1) != nil { 53 r1 = ret.Get(1).([][]byte) 54 } 55 } 56 57 var r2 error 58 if rf, ok := ret.Get(2).(func([][]byte, []byte) error); ok { 59 r2 = rf(registerIDs, stateCommitment) 60 } else { 61 r2 = ret.Error(2) 62 } 63 64 return r0, r1, r2 65 } 66 67 // LatestStateCommitment provides a mock function with given fields: 68 func (_m *Storage) LatestStateCommitment() []byte { 69 ret := _m.Called() 70 71 var r0 []byte 72 if rf, ok := ret.Get(0).(func() []byte); ok { 73 r0 = rf() 74 } else { 75 if ret.Get(0) != nil { 76 r0 = ret.Get(0).([]byte) 77 } 78 } 79 80 return r0 81 } 82 83 // UpdateRegisters provides a mock function with given fields: registerIDs, values 84 func (_m *Storage) UpdateRegisters(registerIDs [][]byte, values [][]byte) ([]byte, error) { 85 ret := _m.Called(registerIDs, values) 86 87 var r0 []byte 88 if rf, ok := ret.Get(0).(func([][]byte, [][]byte) []byte); ok { 89 r0 = rf(registerIDs, values) 90 } else { 91 if ret.Get(0) != nil { 92 r0 = ret.Get(0).([]byte) 93 } 94 } 95 96 var r1 error 97 if rf, ok := ret.Get(1).(func([][]byte, [][]byte) error); ok { 98 r1 = rf(registerIDs, values) 99 } else { 100 r1 = ret.Error(1) 101 } 102 103 return r0, r1 104 } 105 106 // UpdateRegistersWithProof provides a mock function with given fields: registerIDs, values 107 func (_m *Storage) UpdateRegistersWithProof(registerIDs [][]byte, values [][]byte) ([]byte, [][]byte, error) { 108 ret := _m.Called(registerIDs, values) 109 110 var r0 []byte 111 if rf, ok := ret.Get(0).(func([][]byte, [][]byte) []byte); ok { 112 r0 = rf(registerIDs, values) 113 } else { 114 if ret.Get(0) != nil { 115 r0 = ret.Get(0).([]byte) 116 } 117 } 118 119 var r1 [][]byte 120 if rf, ok := ret.Get(1).(func([][]byte, [][]byte) [][]byte); ok { 121 r1 = rf(registerIDs, values) 122 } else { 123 if ret.Get(1) != nil { 124 r1 = ret.Get(1).([][]byte) 125 } 126 } 127 128 var r2 error 129 if rf, ok := ret.Get(2).(func([][]byte, [][]byte) error); ok { 130 r2 = rf(registerIDs, values) 131 } else { 132 r2 = ret.Error(2) 133 } 134 135 return r0, r1, r2 136 }