-
Notifications
You must be signed in to change notification settings - Fork 6
/
mock_controller.go
41 lines (33 loc) · 1.01 KB
/
mock_controller.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: interface.go
package server
import (
context "context"
models "github.com/Clever/wag/samples/gen-go-errors/models"
gomock "github.com/golang/mock/gomock"
)
// Mock of Controller interface
type MockController struct {
ctrl *gomock.Controller
recorder *_MockControllerRecorder
}
// Recorder for MockController (not exported)
type _MockControllerRecorder struct {
mock *MockController
}
func NewMockController(ctrl *gomock.Controller) *MockController {
mock := &MockController{ctrl: ctrl}
mock.recorder = &_MockControllerRecorder{mock}
return mock
}
func (_m *MockController) EXPECT() *_MockControllerRecorder {
return _m.recorder
}
func (_m *MockController) GetBook(ctx context.Context, i *models.GetBookInput) error {
ret := _m.ctrl.Call(_m, "GetBook", ctx, i)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockControllerRecorder) GetBook(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetBook", arg0, arg1)
}