File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import (
22
22
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
23
23
)
24
24
25
+ var tInt32 = reflect .TypeOf (int32 (0 ))
26
+
25
27
func TestMarshalAppendWithRegistry (t * testing.T ) {
26
28
for _ , tc := range marshalingTestCases {
27
29
t .Run (tc .name , func (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ import (
14
14
"go.mongodb.org/mongo-driver/bson/bsonrw"
15
15
)
16
16
17
+ var tRawValue = reflect .TypeOf (RawValue {})
18
+ var tRaw = reflect .TypeOf (Raw (nil ))
19
+
17
20
var primitiveCodecs PrimitiveCodecs
18
21
19
22
// PrimitiveCodecs is a namespace for all of the default bsoncodec.Codecs for the primitive types
Original file line number Diff line number Diff line change 7
7
package bson
8
8
9
9
import (
10
- "reflect"
11
-
12
10
"go.mongodb.org/mongo-driver/bson/bsontype"
13
11
)
14
12
@@ -36,7 +34,3 @@ const (
36
34
TypeMinKey = bsontype .MinKey
37
35
TypeMaxKey = bsontype .MaxKey
38
36
)
39
-
40
- var tRawValue = reflect .TypeOf (RawValue {})
41
- var tInt32 = reflect .TypeOf (int32 (0 ))
42
- var tRaw = reflect .TypeOf (Raw (nil ))
You can’t perform that action at this time.
0 commit comments