File: insertOne.yml

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

tests:
    -
        description: "InsertOne with a non-existing document"
        operation:
            name: "insertOne"
            arguments:
                document: {_id: 2, x: 22}

        outcome:
            result:
                insertedId: 2
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 2, x: 22}