-
Notifications
You must be signed in to change notification settings - Fork 98
/
bugreport_mock.go
97 lines (82 loc) · 2.7 KB
/
bugreport_mock.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: bugreport.go
//
// Generated by this command:
//
// mockgen -destination bugreport_mock.go -package bugreport -source=bugreport.go
//
// Package bugreport is a generated GoMock package.
package bugreport
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
ersatz "go.uber.org/mock/mockgen/internal/tests/import_embedded_interface/ersatz"
ersatz0 "go.uber.org/mock/mockgen/internal/tests/import_embedded_interface/other/ersatz"
)
// MockSource is a mock of Source interface.
type MockSource struct {
ctrl *gomock.Controller
recorder *MockSourceMockRecorder
}
// MockSourceMockRecorder is the mock recorder for MockSource.
type MockSourceMockRecorder struct {
mock *MockSource
}
// NewMockSource creates a new mock instance.
func NewMockSource(ctrl *gomock.Controller) *MockSource {
mock := &MockSource{ctrl: ctrl}
mock.recorder = &MockSourceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSource) EXPECT() *MockSourceMockRecorder {
return m.recorder
}
// Bar mocks base method.
func (m *MockSource) Bar() Baz {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bar")
ret0, _ := ret[0].(Baz)
return ret0
}
// Bar indicates an expected call of Bar.
func (mr *MockSourceMockRecorder) Bar() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bar", reflect.TypeOf((*MockSource)(nil).Bar))
}
// Error mocks base method.
func (m *MockSource) Error() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Error")
ret0, _ := ret[0].(string)
return ret0
}
// Error indicates an expected call of Error.
func (mr *MockSourceMockRecorder) Error() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockSource)(nil).Error))
}
// Ersatz mocks base method.
func (m *MockSource) Ersatz() ersatz.Return {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Ersatz")
ret0, _ := ret[0].(ersatz.Return)
return ret0
}
// Ersatz indicates an expected call of Ersatz.
func (mr *MockSourceMockRecorder) Ersatz() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ersatz", reflect.TypeOf((*MockSource)(nil).Ersatz))
}
// OtherErsatz mocks base method.
func (m *MockSource) OtherErsatz() ersatz0.Return {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OtherErsatz")
ret0, _ := ret[0].(ersatz0.Return)
return ret0
}
// OtherErsatz indicates an expected call of OtherErsatz.
func (mr *MockSourceMockRecorder) OtherErsatz() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OtherErsatz", reflect.TypeOf((*MockSource)(nil).OtherErsatz))
}