Sha256: 31a92ec1d3cae94b3b3de415249f164baf3e1d5cf6135e367f752b4b77b06a7d

Contents?: true

Size: 1007 Bytes

Versions: 1

Compression:

Stored size: 1007 Bytes

Contents

data:
    - {_id: 1, x: 11}
    - {_id: 2, x: 22}
    - {_id: 3, x: 33}
    - {_id: 4, x: 'PING'}

tests:
    -
        description: "Count without a filter"
        operation:
            name: count
            arguments:
                filter: { }

        outcome:
            result: 4
    -
        description: "Count with a filter"
        operation:
            name: count
            arguments:
                filter: 
                    _id: {$gt: 1, $lt: 4}

        outcome:
            result: 2
    -
        description: "Count with skip and limit"
        operation:
            name: count
            arguments:
                filter: {}
                skip: 1
                limit: 3

        outcome:
            result: 3
    -
        description: "Count with collation"
        operation:
            name: count
            arguments:
                filter: { x: 'ping' }
                collation: { locale: 'en_US', strength: 2 }

        outcome:
            result: 1
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo-2.4.0.rc0 spec/support/crud_tests/read/count.yml