github.com/0chain/gosdk@v1.17.11/zboxcore/mocks/LiveUploadReader.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // LiveUploadReader is an autogenerated mock type for the LiveUploadReader type 8 type LiveUploadReader struct { 9 mock.Mock 10 } 11 12 // GetClipsFile provides a mock function with given fields: clipsIndex 13 func (_m *LiveUploadReader) GetClipsFile(clipsIndex int) string { 14 ret := _m.Called(clipsIndex) 15 16 var r0 string 17 if rf, ok := ret.Get(0).(func(int) string); ok { 18 r0 = rf(clipsIndex) 19 } else { 20 r0 = ret.Get(0).(string) 21 } 22 23 return r0 24 } 25 26 // GetClipsFileName provides a mock function with given fields: cliipsIndex 27 func (_m *LiveUploadReader) GetClipsFileName(cliipsIndex int) string { 28 ret := _m.Called(cliipsIndex) 29 30 var r0 string 31 if rf, ok := ret.Get(0).(func(int) string); ok { 32 r0 = rf(cliipsIndex) 33 } else { 34 r0 = ret.Get(0).(string) 35 } 36 37 return r0 38 } 39 40 // Read provides a mock function with given fields: p 41 func (_m *LiveUploadReader) Read(p []byte) (int, error) { 42 ret := _m.Called(p) 43 44 var r0 int 45 var r1 error 46 if rf, ok := ret.Get(0).(func([]byte) (int, error)); ok { 47 return rf(p) 48 } 49 if rf, ok := ret.Get(0).(func([]byte) int); ok { 50 r0 = rf(p) 51 } else { 52 r0 = ret.Get(0).(int) 53 } 54 55 if rf, ok := ret.Get(1).(func([]byte) error); ok { 56 r1 = rf(p) 57 } else { 58 r1 = ret.Error(1) 59 } 60 61 return r0, r1 62 } 63 64 // Size provides a mock function with given fields: 65 func (_m *LiveUploadReader) Size() int64 { 66 ret := _m.Called() 67 68 var r0 int64 69 if rf, ok := ret.Get(0).(func() int64); ok { 70 r0 = rf() 71 } else { 72 r0 = ret.Get(0).(int64) 73 } 74 75 return r0 76 } 77 78 type mockConstructorTestingTNewLiveUploadReader interface { 79 mock.TestingT 80 Cleanup(func()) 81 } 82 83 // NewLiveUploadReader creates a new instance of LiveUploadReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 84 func NewLiveUploadReader(t mockConstructorTestingTNewLiveUploadReader) *LiveUploadReader { 85 mock := &LiveUploadReader{} 86 mock.Mock.Test(t) 87 88 t.Cleanup(func() { mock.AssertExpectations(t) }) 89 90 return mock 91 }