forked from hellofresh/goengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.go
65 lines (54 loc) · 1.75 KB
/
query.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/hellofresh/goengine/v2 (interfaces: Query)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
goengine "github.com/hellofresh/goengine/v2"
)
// Query is a mock of Query interface.
type Query struct {
ctrl *gomock.Controller
recorder *QueryMockRecorder
}
// QueryMockRecorder is the mock recorder for Query.
type QueryMockRecorder struct {
mock *Query
}
// NewQuery creates a new mock instance.
func NewQuery(ctrl *gomock.Controller) *Query {
mock := &Query{ctrl: ctrl}
mock.recorder = &QueryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Query) EXPECT() *QueryMockRecorder {
return m.recorder
}
// Handlers mocks base method.
func (m *Query) Handlers() map[string]goengine.MessageHandler {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Handlers")
ret0, _ := ret[0].(map[string]goengine.MessageHandler)
return ret0
}
// Handlers indicates an expected call of Handlers.
func (mr *QueryMockRecorder) Handlers() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handlers", reflect.TypeOf((*Query)(nil).Handlers))
}
// Init mocks base method.
func (m *Query) Init(arg0 context.Context) (interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Init", arg0)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Init indicates an expected call of Init.
func (mr *QueryMockRecorder) Init(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*Query)(nil).Init), arg0)
}