-
Notifications
You must be signed in to change notification settings - Fork 26
/
StatusCallback.go
49 lines (38 loc) · 1.85 KB
/
StatusCallback.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by mockery v2.36.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// StatusCallback is an autogenerated mock type for the StatusCallback type
type StatusCallback struct {
mock.Mock
}
// Completed provides a mock function with given fields: allocationId, filePath, filename, mimetype, size, op
func (_m *StatusCallback) Completed(allocationId string, filePath string, filename string, mimetype string, size int, op int) {
_m.Called(allocationId, filePath, filename, mimetype, size, op)
}
// Error provides a mock function with given fields: allocationID, filePath, op, err
func (_m *StatusCallback) Error(allocationID string, filePath string, op int, err error) {
_m.Called(allocationID, filePath, op, err)
}
// InProgress provides a mock function with given fields: allocationId, filePath, op, completedBytes, data
func (_m *StatusCallback) InProgress(allocationId string, filePath string, op int, completedBytes int, data []byte) {
_m.Called(allocationId, filePath, op, completedBytes, data)
}
// RepairCompleted provides a mock function with given fields: filesRepaired
func (_m *StatusCallback) RepairCompleted(filesRepaired int) {
_m.Called(filesRepaired)
}
// Started provides a mock function with given fields: allocationId, filePath, op, totalBytes
func (_m *StatusCallback) Started(allocationId string, filePath string, op int, totalBytes int) {
_m.Called(allocationId, filePath, op, totalBytes)
}
// 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.
// The first argument is typically a *testing.T value.
func NewStatusCallback(t interface {
mock.TestingT
Cleanup(func())
}) *StatusCallback {
mock := &StatusCallback{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}