@@ -194,7 +194,7 @@ func TestAppend(t *testing.T) {
194
194
AppendObjectID ,
195
195
[]interface {}{
196
196
make ([]byte , 0 ),
197
- [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
197
+ [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
198
198
},
199
199
[]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
200
200
},
@@ -203,7 +203,7 @@ func TestAppend(t *testing.T) {
203
203
AppendObjectIDElement ,
204
204
[]interface {}{
205
205
make ([]byte , 0 ), "foobar" ,
206
- [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
206
+ [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
207
207
},
208
208
[]byte {byte (TypeObjectID ),
209
209
'f' , 'o' , 'o' , 'b' , 'a' , 'r' , 0x00 ,
@@ -267,7 +267,7 @@ func TestAppend(t *testing.T) {
267
267
[]interface {}{
268
268
make ([]byte , 0 ),
269
269
"foobar" ,
270
- [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
270
+ [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
271
271
},
272
272
[]byte {
273
273
0x07 , 0x00 , 0x00 , 0x00 , 'f' , 'o' , 'o' , 'b' , 'a' , 'r' , 0x00 ,
@@ -280,7 +280,7 @@ func TestAppend(t *testing.T) {
280
280
[]interface {}{
281
281
make ([]byte , 0 ), "foobar" ,
282
282
"barbaz" ,
283
- [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
283
+ [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
284
284
},
285
285
[]byte {byte (TypeDBPointer ),
286
286
'f' , 'o' , 'o' , 'b' , 'a' , 'r' , 0x00 ,
@@ -602,14 +602,14 @@ func TestRead(t *testing.T) {
602
602
"ReadObjectID/not enough bytes" ,
603
603
ReadObjectID ,
604
604
[]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 },
605
- []interface {}{[idLen ]byte {}, []byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 }, false },
605
+ []interface {}{[12 ]byte {}, []byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 }, false },
606
606
},
607
607
{
608
608
"ReadObjectID/success" ,
609
609
ReadObjectID ,
610
610
[]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
611
611
[]interface {}{
612
- [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
612
+ [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
613
613
[]byte {}, true ,
614
614
},
615
615
},
@@ -659,13 +659,13 @@ func TestRead(t *testing.T) {
659
659
"ReadDBPointer/not enough bytes (ns)" ,
660
660
ReadDBPointer ,
661
661
[]byte {},
662
- []interface {}{"" , [idLen ]byte {}, []byte {}, false },
662
+ []interface {}{"" , [12 ]byte {}, []byte {}, false },
663
663
},
664
664
{
665
665
"ReadDBPointer/not enough bytes (objectID)" ,
666
666
ReadDBPointer ,
667
667
[]byte {0x04 , 0x00 , 0x00 , 0x00 , 'f' , 'o' , 'o' , 0x00 },
668
- []interface {}{"" , [idLen ]byte {}, []byte {0x04 , 0x00 , 0x00 , 0x00 , 'f' , 'o' , 'o' , 0x00 }, false },
668
+ []interface {}{"" , [12 ]byte {}, []byte {0x04 , 0x00 , 0x00 , 0x00 , 'f' , 'o' , 'o' , 0x00 }, false },
669
669
},
670
670
{
671
671
"ReadDBPointer/success" ,
@@ -675,7 +675,7 @@ func TestRead(t *testing.T) {
675
675
0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C ,
676
676
},
677
677
[]interface {}{
678
- "foo" , [idLen ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
678
+ "foo" , [12 ]byte {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0A , 0x0B , 0x0C },
679
679
[]byte {}, true ,
680
680
},
681
681
},
0 commit comments