-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathmock_reporter.go
97 lines (82 loc) · 3.31 KB
/
mock_reporter.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/konflux-ci/integration-service/status (interfaces: ReporterInterface)
//
// Generated by this command:
//
// mockgen -destination mock_reporter.go -package status github.com/konflux-ci/integration-service/status ReporterInterface
//
// Package status is a generated GoMock package.
package status
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/konflux-ci/application-api/api/v1alpha1"
gomock "go.uber.org/mock/gomock"
)
// MockReporterInterface is a mock of ReporterInterface interface.
type MockReporterInterface struct {
ctrl *gomock.Controller
recorder *MockReporterInterfaceMockRecorder
}
// MockReporterInterfaceMockRecorder is the mock recorder for MockReporterInterface.
type MockReporterInterfaceMockRecorder struct {
mock *MockReporterInterface
}
// NewMockReporterInterface creates a new mock instance.
func NewMockReporterInterface(ctrl *gomock.Controller) *MockReporterInterface {
mock := &MockReporterInterface{ctrl: ctrl}
mock.recorder = &MockReporterInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockReporterInterface) EXPECT() *MockReporterInterfaceMockRecorder {
return m.recorder
}
// Detect mocks base method.
func (m *MockReporterInterface) Detect(arg0 *v1alpha1.Snapshot) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Detect", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// Detect indicates an expected call of Detect.
func (mr *MockReporterInterfaceMockRecorder) Detect(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Detect", reflect.TypeOf((*MockReporterInterface)(nil).Detect), arg0)
}
// GetReporterName mocks base method.
func (m *MockReporterInterface) GetReporterName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetReporterName")
ret0, _ := ret[0].(string)
return ret0
}
// GetReporterName indicates an expected call of GetReporterName.
func (mr *MockReporterInterfaceMockRecorder) GetReporterName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReporterName", reflect.TypeOf((*MockReporterInterface)(nil).GetReporterName))
}
// Initialize mocks base method.
func (m *MockReporterInterface) Initialize(arg0 context.Context, arg1 *v1alpha1.Snapshot) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Initialize", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Initialize indicates an expected call of Initialize.
func (mr *MockReporterInterfaceMockRecorder) Initialize(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockReporterInterface)(nil).Initialize), arg0, arg1)
}
// ReportStatus mocks base method.
func (m *MockReporterInterface) ReportStatus(arg0 context.Context, arg1 TestReport) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReportStatus", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// ReportStatus indicates an expected call of ReportStatus.
func (mr *MockReporterInterfaceMockRecorder) ReportStatus(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportStatus", reflect.TypeOf((*MockReporterInterface)(nil).ReportStatus), arg0, arg1)
}