-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_tracer.go
74 lines (63 loc) · 2.09 KB
/
mock_tracer.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
66
67
68
69
70
71
72
73
74
// Code generated by MockGen. DO NOT EDIT.
// Source: go.opentelemetry.io/otel/trace (interfaces: Tracer)
//
// Generated by this command:
//
// mockgen -destination=mock_tracer.go -package=nats go.opentelemetry.io/otel/trace Tracer
//
// Package nats is a generated GoMock package.
package nats
import (
context "context"
reflect "reflect"
trace "go.opentelemetry.io/otel/trace"
gomock "go.uber.org/mock/gomock"
)
// MockTracer is a mock of Tracer interface.
type MockTracer struct {
ctrl *gomock.Controller
recorder *MockTracerMockRecorder
isgomock struct{}
}
// MockTracerMockRecorder is the mock recorder for MockTracer.
type MockTracerMockRecorder struct {
mock *MockTracer
}
// NewMockTracer creates a new mock instance.
func NewMockTracer(ctrl *gomock.Controller) *MockTracer {
mock := &MockTracer{ctrl: ctrl}
mock.recorder = &MockTracerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTracer) EXPECT() *MockTracerMockRecorder {
return m.recorder
}
// Start mocks base method.
func (m *MockTracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span) {
m.ctrl.T.Helper()
varargs := []any{ctx, spanName}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Start", varargs...)
ret0, _ := ret[0].(context.Context)
ret1, _ := ret[1].(trace.Span)
return ret0, ret1
}
// Start indicates an expected call of Start.
func (mr *MockTracerMockRecorder) Start(ctx, spanName any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{ctx, spanName}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTracer)(nil).Start), varargs...)
}
// tracer mocks base method.
func (m *MockTracer) tracer() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "tracer")
}
// tracer indicates an expected call of tracer.
func (mr *MockTracerMockRecorder) tracer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "tracer", reflect.TypeOf((*MockTracer)(nil).tracer))
}