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 59
/
NodeStatusGetter.go
49 lines (38 loc) · 1.56 KB
/
NodeStatusGetter.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 v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
v1alpha1 "github.com/flyteorg/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
mock "github.com/stretchr/testify/mock"
)
// NodeStatusGetter is an autogenerated mock type for the NodeStatusGetter type
type NodeStatusGetter struct {
mock.Mock
}
type NodeStatusGetter_GetNodeExecutionStatus struct {
*mock.Call
}
func (_m NodeStatusGetter_GetNodeExecutionStatus) Return(_a0 v1alpha1.ExecutableNodeStatus) *NodeStatusGetter_GetNodeExecutionStatus {
return &NodeStatusGetter_GetNodeExecutionStatus{Call: _m.Call.Return(_a0)}
}
func (_m *NodeStatusGetter) OnGetNodeExecutionStatus(ctx context.Context, id string) *NodeStatusGetter_GetNodeExecutionStatus {
c_call := _m.On("GetNodeExecutionStatus", ctx, id)
return &NodeStatusGetter_GetNodeExecutionStatus{Call: c_call}
}
func (_m *NodeStatusGetter) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *NodeStatusGetter_GetNodeExecutionStatus {
c_call := _m.On("GetNodeExecutionStatus", matchers...)
return &NodeStatusGetter_GetNodeExecutionStatus{Call: c_call}
}
// GetNodeExecutionStatus provides a mock function with given fields: ctx, id
func (_m *NodeStatusGetter) GetNodeExecutionStatus(ctx context.Context, id string) v1alpha1.ExecutableNodeStatus {
ret := _m.Called(ctx, id)
var r0 v1alpha1.ExecutableNodeStatus
if rf, ok := ret.Get(0).(func(context.Context, string) v1alpha1.ExecutableNodeStatus); ok {
r0 = rf(ctx, id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1alpha1.ExecutableNodeStatus)
}
}
return r0
}