diff options
Diffstat (limited to 'src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go')
-rw-r--r-- | src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go b/src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go index b3d694befdf..e43ae011f0f 100644 --- a/src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go +++ b/src/mongo/gotools/src/github.com/mongodb/mongo-tools/common/bsonutil/converter_test.go @@ -20,7 +20,7 @@ import ( ) func TestObjectIdBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON ObjectId", t, func() { Convey("that is valid to JSON should produce a json.ObjectId", func() { @@ -39,7 +39,7 @@ func TestObjectIdBSONToJSON(t *testing.T) { } func TestArraysBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting BSON arrays to JSON arrays", t, func() { Convey("should work for empty arrays", func() { @@ -94,7 +94,7 @@ func TestArraysBSONToJSON(t *testing.T) { } func TestDateBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) timeNow := time.Now() secs := int64(timeNow.Unix()) @@ -138,7 +138,7 @@ func TestDateBSONToJSON(t *testing.T) { } func TestMaxKeyBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON Maxkey to JSON", t, func() { Convey("should produce a json.MaxKey", func() { @@ -153,7 +153,7 @@ func TestMaxKeyBSONToJSON(t *testing.T) { } func TestMinKeyBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON Maxkey to JSON", t, func() { Convey("should produce a json.MinKey", func() { @@ -168,7 +168,7 @@ func TestMinKeyBSONToJSON(t *testing.T) { } func Test64BitIntBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON int64 to JSON", t, func() { Convey("should produce a json.NumberLong", func() { @@ -184,7 +184,7 @@ func Test64BitIntBSONToJSON(t *testing.T) { } func Test32BitIntBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON int32 integer to JSON", t, func() { Convey("should produce a json.NumberInt", func() { @@ -200,7 +200,7 @@ func Test32BitIntBSONToJSON(t *testing.T) { } func TestRegExBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON Regular Expression (= /decision/gi) to JSON", t, func() { Convey("should produce a json.RegExp", func() { @@ -216,7 +216,7 @@ func TestRegExBSONToJSON(t *testing.T) { } func TestUndefinedValueBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON Undefined type to JSON", t, func() { Convey("should produce a json.Undefined", func() { @@ -231,7 +231,7 @@ func TestUndefinedValueBSONToJSON(t *testing.T) { } func TestDBRefBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting BSON DBRef to JSON", t, func() { Convey("should produce a json.DBRef", func() { @@ -247,7 +247,7 @@ func TestDBRefBSONToJSON(t *testing.T) { } func TestTimestampBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting a BSON Timestamp to JSON", t, func() { Convey("should produce a json.Timestamp", func() { @@ -264,7 +264,7 @@ func TestTimestampBSONToJSON(t *testing.T) { } func TestBinaryBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting BSON Binary data to JSON", t, func() { Convey("should produce a json.BinData", func() { @@ -282,7 +282,7 @@ func TestBinaryBSONToJSON(t *testing.T) { } func TestGenericBytesBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting Go bytes to JSON", t, func() { Convey("should produce a json.BinData with Type=0x00 (Generic)", func() { @@ -299,7 +299,7 @@ func TestGenericBytesBSONToJSON(t *testing.T) { } func TestUnknownBSONTypeToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting an unknown BSON type to JSON", t, func() { Convey("should produce an error", func() { @@ -310,7 +310,7 @@ func TestUnknownBSONTypeToJSON(t *testing.T) { } func TestDBPointerBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting BSON DBPointer to JSON", t, func() { Convey("should produce a json.DBPointer", func() { @@ -326,7 +326,7 @@ func TestDBPointerBSONToJSON(t *testing.T) { } func TestJSCodeBSONToJSON(t *testing.T) { - testtype.VerifyTestType(t, testtype.UnitTestType) + testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Converting BSON Javascript code to JSON", t, func() { Convey("should produce a json.Javascript", func() { |