forked from couchbase/gocbcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_tracerManager_test.go
62 lines (49 loc) · 1.67 KB
/
mock_tracerManager_test.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package gocbcore
import (
http "net/http"
time "time"
mock "github.com/stretchr/testify/mock"
)
// mockTracerManager is an autogenerated mock type for the tracerManager type
type mockTracerManager struct {
mock.Mock
}
// CreateOpTrace provides a mock function with given fields: operationName, parentContext
func (_m *mockTracerManager) CreateOpTrace(operationName string, parentContext RequestSpanContext) *opTracer {
ret := _m.Called(operationName, parentContext)
var r0 *opTracer
if rf, ok := ret.Get(0).(func(string, RequestSpanContext) *opTracer); ok {
r0 = rf(operationName, parentContext)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*opTracer)
}
}
return r0
}
// StartCmdTrace provides a mock function with given fields: req
func (_m *mockTracerManager) StartCmdTrace(req *memdQRequest) {
_m.Called(req)
}
// StartHTTPDispatchSpan provides a mock function with given fields: req, name
func (_m *mockTracerManager) StartHTTPDispatchSpan(req *httpRequest, name string) RequestSpan {
ret := _m.Called(req, name)
var r0 RequestSpan
if rf, ok := ret.Get(0).(func(*httpRequest, string) RequestSpan); ok {
r0 = rf(req, name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(RequestSpan)
}
}
return r0
}
// StartNetTrace provides a mock function with given fields: req
func (_m *mockTracerManager) StartNetTrace(req *memdQRequest) {
_m.Called(req)
}
// StopHTTPDispatchSpan provides a mock function with given fields: span, resp, id, duration
func (_m *mockTracerManager) StopHTTPDispatchSpan(span RequestSpan, resp *http.Response, id string, duration time.Duration) {
_m.Called(span, resp, id, duration)
}