...

Text file src/go.mongodb.org/mongo-driver/testdata/bson-corpus/int64.json

Documentation: go.mongodb.org/mongo-driver/testdata/bson-corpus

     1{
     2    "description": "Int64 type",
     3    "bson_type": "0x12",
     4    "test_key": "a",
     5    "valid": [
     6        {
     7            "description": "MinValue",
     8            "canonical_bson": "10000000126100000000000000008000",
     9            "canonical_extjson": "{\"a\" : {\"$numberLong\" : \"-9223372036854775808\"}}",
    10            "relaxed_extjson": "{\"a\" : -9223372036854775808}"
    11        },
    12        {
    13            "description": "MaxValue",
    14            "canonical_bson": "10000000126100FFFFFFFFFFFFFF7F00",
    15            "canonical_extjson": "{\"a\" : {\"$numberLong\" : \"9223372036854775807\"}}",
    16            "relaxed_extjson": "{\"a\" : 9223372036854775807}"
    17        },
    18        {
    19            "description": "-1",
    20            "canonical_bson": "10000000126100FFFFFFFFFFFFFFFF00",
    21            "canonical_extjson": "{\"a\" : {\"$numberLong\" : \"-1\"}}",
    22            "relaxed_extjson": "{\"a\" : -1}"
    23        },
    24        {
    25            "description": "0",
    26            "canonical_bson": "10000000126100000000000000000000",
    27            "canonical_extjson": "{\"a\" : {\"$numberLong\" : \"0\"}}",
    28            "relaxed_extjson": "{\"a\" : 0}"
    29        },
    30        {
    31            "description": "1",
    32            "canonical_bson": "10000000126100010000000000000000",
    33            "canonical_extjson": "{\"a\" : {\"$numberLong\" : \"1\"}}",
    34            "relaxed_extjson": "{\"a\" : 1}"
    35        }
    36    ],
    37    "decodeErrors": [
    38        {
    39            "description": "int64 field truncated",
    40            "bson": "0C0000001261001234567800"
    41        }
    42    ]
    43}

View as plain text