This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
upload_future.go
82 lines (64 loc) · 2.18 KB
/
upload_future.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
catalog "github.com/lyft/flyteplugins/go/tasks/pluginmachinery/catalog"
mock "github.com/stretchr/testify/mock"
)
// UploadFuture is an autogenerated mock type for the UploadFuture type
type UploadFuture struct {
mock.Mock
}
type UploadFuture_GetResponseError struct {
*mock.Call
}
func (_m UploadFuture_GetResponseError) Return(_a0 error) *UploadFuture_GetResponseError {
return &UploadFuture_GetResponseError{Call: _m.Call.Return(_a0)}
}
func (_m *UploadFuture) OnGetResponseError() *UploadFuture_GetResponseError {
c := _m.On("GetResponseError")
return &UploadFuture_GetResponseError{Call: c}
}
func (_m *UploadFuture) OnGetResponseErrorMatch(matchers ...interface{}) *UploadFuture_GetResponseError {
c := _m.On("GetResponseError", matchers...)
return &UploadFuture_GetResponseError{Call: c}
}
// GetResponseError provides a mock function with given fields:
func (_m *UploadFuture) GetResponseError() error {
ret := _m.Called()
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
} else {
r0 = ret.Error(0)
}
return r0
}
type UploadFuture_GetResponseStatus struct {
*mock.Call
}
func (_m UploadFuture_GetResponseStatus) Return(_a0 catalog.ResponseStatus) *UploadFuture_GetResponseStatus {
return &UploadFuture_GetResponseStatus{Call: _m.Call.Return(_a0)}
}
func (_m *UploadFuture) OnGetResponseStatus() *UploadFuture_GetResponseStatus {
c := _m.On("GetResponseStatus")
return &UploadFuture_GetResponseStatus{Call: c}
}
func (_m *UploadFuture) OnGetResponseStatusMatch(matchers ...interface{}) *UploadFuture_GetResponseStatus {
c := _m.On("GetResponseStatus", matchers...)
return &UploadFuture_GetResponseStatus{Call: c}
}
// GetResponseStatus provides a mock function with given fields:
func (_m *UploadFuture) GetResponseStatus() catalog.ResponseStatus {
ret := _m.Called()
var r0 catalog.ResponseStatus
if rf, ok := ret.Get(0).(func() catalog.ResponseStatus); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(catalog.ResponseStatus)
}
return r0
}
// OnReady provides a mock function with given fields: handler
func (_m *UploadFuture) OnReady(handler catalog.ReadyHandler) {
_m.Called(handler)
}