/
MissionControlUPI.go
43 lines (33 loc) · 1 KB
/
MissionControlUPI.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
// Code generated by mockery v2.10.0. DO NOT EDIT.
package mocks
import (
context "context"
fiber "github.com/gojek/fiber"
errors "github.com/caraml-dev/turing/engines/router/missionctl/errors"
mock "github.com/stretchr/testify/mock"
)
// MissionControlUPI is an autogenerated mock type for the MissionControlUPI type
type MissionControlUPI struct {
mock.Mock
}
// Route provides a mock function with given fields: _a0, _a1
func (_m *MissionControlUPI) Route(_a0 context.Context, _a1 fiber.Request) (fiber.Response, *errors.TuringError) {
ret := _m.Called(_a0, _a1)
var r0 fiber.Response
if rf, ok := ret.Get(0).(func(context.Context, fiber.Request) fiber.Response); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(fiber.Response)
}
}
var r1 *errors.TuringError
if rf, ok := ret.Get(1).(func(context.Context, fiber.Request) *errors.TuringError); ok {
r1 = rf(_a0, _a1)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*errors.TuringError)
}
}
return r0, r1
}