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 62
/
metrics_interface.go
57 lines (44 loc) · 1.9 KB
/
metrics_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"
)
// MetricsInterface is an autogenerated mock type for the MetricsInterface type
type MetricsInterface struct {
mock.Mock
}
type MetricsInterface_GetExecutionMetrics struct {
*mock.Call
}
func (_m MetricsInterface_GetExecutionMetrics) Return(_a0 *admin.WorkflowExecutionGetMetricsResponse, _a1 error) *MetricsInterface_GetExecutionMetrics {
return &MetricsInterface_GetExecutionMetrics{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *MetricsInterface) OnGetExecutionMetrics(ctx context.Context, request admin.WorkflowExecutionGetMetricsRequest) *MetricsInterface_GetExecutionMetrics {
c_call := _m.On("GetExecutionMetrics", ctx, request)
return &MetricsInterface_GetExecutionMetrics{Call: c_call}
}
func (_m *MetricsInterface) OnGetExecutionMetricsMatch(matchers ...interface{}) *MetricsInterface_GetExecutionMetrics {
c_call := _m.On("GetExecutionMetrics", matchers...)
return &MetricsInterface_GetExecutionMetrics{Call: c_call}
}
// GetExecutionMetrics provides a mock function with given fields: ctx, request
func (_m *MetricsInterface) GetExecutionMetrics(ctx context.Context, request admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) {
ret := _m.Called(ctx, request)
var r0 *admin.WorkflowExecutionGetMetricsResponse
if rf, ok := ret.Get(0).(func(context.Context, admin.WorkflowExecutionGetMetricsRequest) *admin.WorkflowExecutionGetMetricsResponse); ok {
r0 = rf(ctx, request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*admin.WorkflowExecutionGetMetricsResponse)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, admin.WorkflowExecutionGetMetricsRequest) error); ok {
r1 = rf(ctx, request)
} else {
r1 = ret.Error(1)
}
return r0, r1
}