github.com/0chain/gosdk@v1.17.11/zboxcore/mocks/AllocationChange.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 fileref "github.com/0chain/gosdk/zboxcore/fileref" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // AllocationChange is an autogenerated mock type for the AllocationChange type 11 type AllocationChange struct { 12 mock.Mock 13 } 14 15 // GetAffectedPath provides a mock function with given fields: 16 func (_m *AllocationChange) GetAffectedPath() []string { 17 ret := _m.Called() 18 19 var r0 []string 20 if rf, ok := ret.Get(0).(func() []string); ok { 21 r0 = rf() 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).([]string) 25 } 26 } 27 28 return r0 29 } 30 31 // GetSize provides a mock function with given fields: 32 func (_m *AllocationChange) GetSize() int64 { 33 ret := _m.Called() 34 35 var r0 int64 36 if rf, ok := ret.Get(0).(func() int64); ok { 37 r0 = rf() 38 } else { 39 r0 = ret.Get(0).(int64) 40 } 41 42 return r0 43 } 44 45 // ProcessChange provides a mock function with given fields: rootRef, fileIDMeta 46 func (_m *AllocationChange) ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) error { 47 ret := _m.Called(rootRef, fileIDMeta) 48 49 var r0 error 50 if rf, ok := ret.Get(0).(func(*fileref.Ref, map[string]string) error); ok { 51 r0 = rf(rootRef, fileIDMeta) 52 } else { 53 r0 = ret.Error(0) 54 } 55 56 return r0 57 } 58 59 type mockConstructorTestingTNewAllocationChange interface { 60 mock.TestingT 61 Cleanup(func()) 62 } 63 64 // NewAllocationChange creates a new instance of AllocationChange. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 65 func NewAllocationChange(t mockConstructorTestingTNewAllocationChange) *AllocationChange { 66 mock := &AllocationChange{} 67 mock.Mock.Test(t) 68 69 t.Cleanup(func() { mock.AssertExpectations(t) }) 70 71 return mock 72 }