Skip to content

Test Coverage

Ryan Grimm edited this page Oct 25, 2011 · 10 revisions

Test Coverage

JSON Parsing

  • Invalid JSON
  • Bare/empty datatypes
  • Empty key name
  • Key name escaping
  • Newlines in values
  • Escaped characters
  • Unicode strings
  • Escaped unicode strings
  • Nested arrays
  • Nested objects
  • Casting as XML
  • Casting as date/date parsing

Date Parser

  • Tests for all supported dates

Path Parser

  • Simple steps
  • Quoted steps
  • Wild steps
  • Array access
  • root() function
  • ancestor() function
  • parent() function
  • xpath() function

Document Store

  • Store a document
  • Fetch a document
  • Delete a document
  • Store a document with permissions
  • Store a document with properties
  • Store a document with collections
  • Store a document with quality
  • Set document permissions
  • Set document properties
  • Set document collections
  • Set document quality

Query Strings

Unit tests

  • Simple keywords
  • Quoted strings
  • Grouping with parenthesis
  • AND keyword
  • OR keyword
  • NEAR keyword
  • NEAR/n keyword
  • Field constraints
  • Map constraints
  • Range constraints
  • Bucketed range constraints

Integration tests

  • Query submission
  • Missing query
  • extractPath
  • applyTransform
  • include collections

Key/Value Queries

  • Input validation
  • JSON key/value query
  • Query XML element inside JSON document
  • extractPath usage on JSON document
  • underDirectory usage
  • inDirectory usage
  • collection usage
  • Property query
  • Applying transformation
  • XML element/attribute query

Structured Queries

Unit tests

  • Contains
  • Equals
  • Equals and contains options
  • And
  • Or
  • Not
  • AndNot
  • Collections
  • Properties
  • String range index
  • Date range index
  • Range with from and to
  • Range index operator override
  • Bucketed range label query
  • Auto-bucketed range label query
  • Geo with lat/long element or key
  • Geo with parent/child element or key
  • Geo with parent/lat/long element or key
  • Geo with element/attributes
  • Geo point construction
  • Geo circle construction
  • Geo box construction
  • Geo polygon construction

Integration tests

  • Query submission
  • Missing query
  • extractPath
  • applyTransform
  • include collections

Facets

Index Management

  • Remove a map
  • Remove a field
  • Remove a ranges
  • Remove a bucketed range
  • Remove a namespace
  • Map creation
  • Field creation
  • Range creation
  • Bucketed range creation
  • Namespace creation
Clone this wiki locally