Skip to content

Commit 713c5b4

Browse files
committed
Added
1 parent 31abc29 commit 713c5b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bson/encode_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,16 @@ func reflectionEncoderTest(t *testing.T) {
816816
docToBytes(NewDocument(EC.String("foo", "bar"))),
817817
nil,
818818
},
819+
{
820+
"inline, omitempty",
821+
struct {
822+
A string `bson:",omitempty,inline"`
823+
}{
824+
A: "",
825+
},
826+
docToBytes(NewDocument()),
827+
nil,
828+
},
819829
{
820830
"struct{}",
821831
struct {

0 commit comments

Comments
 (0)