-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathObjectEncoder_test.go
163 lines (130 loc) · 4.66 KB
/
ObjectEncoder_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Code generated by mockery v1.0.0
package stackdriver
import mock "github.com/stretchr/testify/mock"
import time "time"
import zapcore "go.uber.org/zap/zapcore"
// ObjectEncoder is an autogenerated mock type for the ObjectEncoder type
type ObjectEncoder struct {
mock.Mock
}
// AddArray provides a mock function with given fields: key, marshaler
func (_m *ObjectEncoder) AddArray(key string, marshaler zapcore.ArrayMarshaler) error {
ret := _m.Called(key, marshaler)
var r0 error
if rf, ok := ret.Get(0).(func(string, zapcore.ArrayMarshaler) error); ok {
r0 = rf(key, marshaler)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddBinary provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddBinary(key string, value []byte) {
_m.Called(key, value)
}
// AddBool provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddBool(key string, value bool) {
_m.Called(key, value)
}
// AddByteString provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddByteString(key string, value []byte) {
_m.Called(key, value)
}
// AddComplex128 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddComplex128(key string, value complex128) {
_m.Called(key, value)
}
// AddComplex64 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddComplex64(key string, value complex64) {
_m.Called(key, value)
}
// AddDuration provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddDuration(key string, value time.Duration) {
_m.Called(key, value)
}
// AddFloat32 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddFloat32(key string, value float32) {
_m.Called(key, value)
}
// AddFloat64 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddFloat64(key string, value float64) {
_m.Called(key, value)
}
// AddInt provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddInt(key string, value int) {
_m.Called(key, value)
}
// AddInt16 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddInt16(key string, value int16) {
_m.Called(key, value)
}
// AddInt32 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddInt32(key string, value int32) {
_m.Called(key, value)
}
// AddInt64 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddInt64(key string, value int64) {
_m.Called(key, value)
}
// AddInt8 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddInt8(key string, value int8) {
_m.Called(key, value)
}
// AddObject provides a mock function with given fields: key, marshaler
func (_m *ObjectEncoder) AddObject(key string, marshaler zapcore.ObjectMarshaler) error {
ret := _m.Called(key, marshaler)
var r0 error
if rf, ok := ret.Get(0).(func(string, zapcore.ObjectMarshaler) error); ok {
r0 = rf(key, marshaler)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddReflected provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddReflected(key string, value interface{}) error {
ret := _m.Called(key, value)
var r0 error
if rf, ok := ret.Get(0).(func(string, interface{}) error); ok {
r0 = rf(key, value)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddString provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddString(key string, value string) {
_m.Called(key, value)
}
// AddTime provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddTime(key string, value time.Time) {
_m.Called(key, value)
}
// AddUint provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUint(key string, value uint) {
_m.Called(key, value)
}
// AddUint16 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUint16(key string, value uint16) {
_m.Called(key, value)
}
// AddUint32 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUint32(key string, value uint32) {
_m.Called(key, value)
}
// AddUint64 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUint64(key string, value uint64) {
_m.Called(key, value)
}
// AddUint8 provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUint8(key string, value uint8) {
_m.Called(key, value)
}
// AddUintptr provides a mock function with given fields: key, value
func (_m *ObjectEncoder) AddUintptr(key string, value uintptr) {
_m.Called(key, value)
}
// OpenNamespace provides a mock function with given fields: key
func (_m *ObjectEncoder) OpenNamespace(key string) {
_m.Called(key)
}