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 63
/
Copy pathversion_interface.go
57 lines (44 loc) · 1.59 KB
/
version_interface.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"
mock "github.com/stretchr/testify/mock"
)
// VersionInterface is an autogenerated mock type for the VersionInterface type
type VersionInterface struct {
mock.Mock
}
type VersionInterface_GetVersion struct {
*mock.Call
}
func (_m VersionInterface_GetVersion) Return(_a0 *admin.GetVersionResponse, _a1 error) *VersionInterface_GetVersion {
return &VersionInterface_GetVersion{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *VersionInterface) OnGetVersion(ctx context.Context, r *admin.GetVersionRequest) *VersionInterface_GetVersion {
c_call := _m.On("GetVersion", ctx, r)
return &VersionInterface_GetVersion{Call: c_call}
}
func (_m *VersionInterface) OnGetVersionMatch(matchers ...interface{}) *VersionInterface_GetVersion {
c_call := _m.On("GetVersion", matchers...)
return &VersionInterface_GetVersion{Call: c_call}
}
// GetVersion provides a mock function with given fields: ctx, r
func (_m *VersionInterface) GetVersion(ctx context.Context, r *admin.GetVersionRequest) (*admin.GetVersionResponse, error) {
ret := _m.Called(ctx, r)
var r0 *admin.GetVersionResponse
if rf, ok := ret.Get(0).(func(context.Context, *admin.GetVersionRequest) *admin.GetVersionResponse); ok {
r0 = rf(ctx, r)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.GetVersionResponse)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *admin.GetVersionRequest) error); ok {
r1 = rf(ctx, r)
} else {
r1 = ret.Error(1)
}
return r0, r1
}