-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmock_test.go
More file actions
54 lines (45 loc) · 1.42 KB
/
mock_test.go
File metadata and controls
54 lines (45 loc) · 1.42 KB
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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tecnickcom/gogen/pkg/httpserver (interfaces: Binder)
//
// Generated by this command:
//
// mockgen -write_package_comment=false -package httpserver -destination ./mock_test.go . Binder
//
package httpserver
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockBinder is a mock of Binder interface.
type MockBinder struct {
ctrl *gomock.Controller
recorder *MockBinderMockRecorder
isgomock struct{}
}
// MockBinderMockRecorder is the mock recorder for MockBinder.
type MockBinderMockRecorder struct {
mock *MockBinder
}
// NewMockBinder creates a new mock instance.
func NewMockBinder(ctrl *gomock.Controller) *MockBinder {
mock := &MockBinder{ctrl: ctrl}
mock.recorder = &MockBinderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBinder) EXPECT() *MockBinderMockRecorder {
return m.recorder
}
// BindHTTP mocks base method.
func (m *MockBinder) BindHTTP(ctx context.Context) []Route {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BindHTTP", ctx)
ret0, _ := ret[0].([]Route)
return ret0
}
// BindHTTP indicates an expected call of BindHTTP.
func (mr *MockBinderMockRecorder) BindHTTP(ctx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BindHTTP", reflect.TypeOf((*MockBinder)(nil).BindHTTP), ctx)
}