...
1description: entity-find-cursor
2
3schemaVersion: '1.3'
4
5createEntities:
6 - client:
7 id: &client0 client0
8 - database:
9 id: &database0 database0
10 client: *client0
11 databaseName: &database0Name database0Name
12 - collection:
13 id: &collection0 collection0
14 database: *database0
15 collectionName: &collection0Name coll0
16
17initialData:
18 - databaseName: *database0Name
19 collectionName: *collection0Name
20 documents: []
21
22tests:
23 - description: createFindCursor fails if filter is not specified
24 operations:
25 - name: createFindCursor
26 object: *collection0
27 saveResultAsEntity: &cursor0 cursor0
28
29 - description: iterateUntilDocumentOrError fails if it references a nonexistent entity
30 operations:
31 - name: iterateUntilDocumentOrError
32 object: cursor0
33
34 - description: close fails if it references a nonexistent entity
35 operations:
36 - name: close
37 object: cursor0
View as plain text