github.com/0chain/gosdk@v1.17.11/zboxcore/mocks/StatusCallback.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  // StatusCallback is an autogenerated mock type for the StatusCallback type
     8  type StatusCallback struct {
     9  	mock.Mock
    10  }
    11  
    12  // Completed provides a mock function with given fields: allocationId, filePath, filename, mimetype, size, op
    13  func (_m *StatusCallback) Completed(allocationId string, filePath string, filename string, mimetype string, size int, op int) {
    14  	_m.Called(allocationId, filePath, filename, mimetype, size, op)
    15  }
    16  
    17  // Error provides a mock function with given fields: allocationID, filePath, op, err
    18  func (_m *StatusCallback) Error(allocationID string, filePath string, op int, err error) {
    19  	_m.Called(allocationID, filePath, op, err)
    20  }
    21  
    22  // InProgress provides a mock function with given fields: allocationId, filePath, op, completedBytes, data
    23  func (_m *StatusCallback) InProgress(allocationId string, filePath string, op int, completedBytes int, data []byte) {
    24  	_m.Called(allocationId, filePath, op, completedBytes, data)
    25  }
    26  
    27  // RepairCompleted provides a mock function with given fields: filesRepaired
    28  func (_m *StatusCallback) RepairCompleted(filesRepaired int) {
    29  	_m.Called(filesRepaired)
    30  }
    31  
    32  // Started provides a mock function with given fields: allocationId, filePath, op, totalBytes
    33  func (_m *StatusCallback) Started(allocationId string, filePath string, op int, totalBytes int) {
    34  	_m.Called(allocationId, filePath, op, totalBytes)
    35  }
    36  
    37  type mockConstructorTestingTNewStatusCallback interface {
    38  	mock.TestingT
    39  	Cleanup(func())
    40  }
    41  
    42  // NewStatusCallback creates a new instance of StatusCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    43  func NewStatusCallback(t mockConstructorTestingTNewStatusCallback) *StatusCallback {
    44  	mock := &StatusCallback{}
    45  	mock.Mock.Test(t)
    46  
    47  	t.Cleanup(func() { mock.AssertExpectations(t) })
    48  
    49  	return mock
    50  }