forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpanWriterPluginServer.go
35 lines (28 loc) · 1.01 KB
/
SpanWriterPluginServer.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import context "context"
import mock "github.com/stretchr/testify/mock"
import storage_v1 "github.com/jaegertracing/jaeger/proto-gen/storage_v1"
// SpanWriterPluginServer is an autogenerated mock type for the SpanWriterPluginServer type
type SpanWriterPluginServer struct {
mock.Mock
}
// WriteSpan provides a mock function with given fields: _a0, _a1
func (_m *SpanWriterPluginServer) WriteSpan(_a0 context.Context, _a1 *storage_v1.WriteSpanRequest) (*storage_v1.WriteSpanResponse, error) {
ret := _m.Called(_a0, _a1)
var r0 *storage_v1.WriteSpanResponse
if rf, ok := ret.Get(0).(func(context.Context, *storage_v1.WriteSpanRequest) *storage_v1.WriteSpanResponse); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*storage_v1.WriteSpanResponse)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *storage_v1.WriteSpanRequest) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}