...

Text file src/go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail/entity-find-cursor.json

Documentation: go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail

     1{
     2  "description": "entity-find-cursor",
     3  "schemaVersion": "1.3",
     4  "createEntities": [
     5    {
     6      "client": {
     7        "id": "client0"
     8      }
     9    },
    10    {
    11      "database": {
    12        "id": "database0",
    13        "client": "client0",
    14        "databaseName": "database0Name"
    15      }
    16    },
    17    {
    18      "collection": {
    19        "id": "collection0",
    20        "database": "database0",
    21        "collectionName": "coll0"
    22      }
    23    }
    24  ],
    25  "initialData": [
    26    {
    27      "databaseName": "database0Name",
    28      "collectionName": "coll0",
    29      "documents": []
    30    }
    31  ],
    32  "tests": [
    33    {
    34      "description": "createFindCursor fails if filter is not specified",
    35      "operations": [
    36        {
    37          "name": "createFindCursor",
    38          "object": "collection0",
    39          "saveResultAsEntity": "cursor0"
    40        }
    41      ]
    42    },
    43    {
    44      "description": "iterateUntilDocumentOrError fails if it references a nonexistent entity",
    45      "operations": [
    46        {
    47          "name": "iterateUntilDocumentOrError",
    48          "object": "cursor0"
    49        }
    50      ]
    51    },
    52    {
    53      "description": "close fails if it references a nonexistent entity",
    54      "operations": [
    55        {
    56          "name": "close",
    57          "object": "cursor0"
    58        }
    59      ]
    60    }
    61  ]
    62}

View as plain text