Skip to content

Commit b21c124

Browse files
GODRIVER-3587 Use raw bytes in valueReader
1 parent 6c97757 commit b21c124

File tree

3 files changed

+317
-393
lines changed

3 files changed

+317
-393
lines changed

bson/decoder_test.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -242,24 +242,6 @@ func TestDecoder(t *testing.T) {
242242
})
243243
}
244244
})
245-
t.Run("stream", func(t *testing.T) {
246-
t.Parallel()
247-
248-
var buf bytes.Buffer
249-
vr := NewDocumentReader(&buf)
250-
dec := NewDecoder(vr)
251-
for _, tc := range unmarshalingTestCases() {
252-
tc := tc
253-
254-
t.Run(tc.name, func(t *testing.T) {
255-
buf.Write(tc.data)
256-
got := reflect.New(tc.sType).Interface()
257-
err := dec.Decode(got)
258-
noerr(t, err)
259-
assert.Equal(t, tc.want, got, "Results do not match.")
260-
})
261-
}
262-
})
263245
t.Run("lookup error", func(t *testing.T) {
264246
t.Parallel()
265247

0 commit comments

Comments
 (0)