File: insertMany.yml

package info (click to toggle)
libmongodb-perl 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,316 kB
  • sloc: perl: 12,983; makefile: 22; sh: 11
file content (21 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
data:
    - {_id: 1, x: 11}

tests:
    -
        description: "InsertMany with non-existing documents"
        operation:
            name: "insertMany"
            arguments:
                documents: 
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}

        outcome:
            result:
                insertedIds: { 0: 2, 1: 3 }
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}