GODRIVER-2976 Remove deprecated BSON code (phase 1)#1410
Conversation
API Change Report./bsonincompatible changes##(*Decoder).Reset: changed from func(./bson/bsonrw.ValueReader) error to func(./bson/bsonrw.ValueReader) |
d29ee0a to
c7f3a17
Compare
5d924e9 to
d9a1e55
Compare
999bdd8 to
6409678
Compare
3c6dfdb to
6cc5e96
Compare
6cc5e96 to
02284e7
Compare
720f32b to
50c8cf1
Compare
50c8cf1 to
99c10fd
Compare
| buf := new(bytes.Buffer) | ||
| enc := new(Encoder) |
There was a problem hiding this comment.
It's technically safe to share the buffer and Encoder in this case, but it creates an opportunity for unexpected interaction between test cases. We should initialize these values in the test case funcs.
| buf := new(bytes.Buffer) | ||
| enc := new(Encoder) |
There was a problem hiding this comment.
We should initialize these values in the test case funcs.
| buf := new(bytes.Buffer) | ||
| enc := new(Encoder) |
There was a problem hiding this comment.
We should initialize these values in the test case funcs.
| filename = val.StringValue() | ||
| case "revision": | ||
| opts.SetRevision(val.AsInt32()) | ||
| opts.SetRevision(int32(val.AsInt64())) |
There was a problem hiding this comment.
Check this conversion to make sure it doesn't overflow.
GODRIVER-2976
Summary
Phase 1 of the deprecation to limit the files to reviewing one time.
Background & Motivation