ParserTestCase is a datatype for a test case for a parser.

This datatype is used by both Parser, which is used by several mutation and query fields, and by UnsavedParser, which is used by the generateParserFromTemplate() query field.

Table: ParserTestCase

ParameterTypeRequiredDefaultStabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.
Table last updated: Sep 27, 2024
eventParserTestEventyes Long-TermThe event on which to parse and test. See ParserTestEvent.
outputAssertions[ParserTestCaseAssertionsForOutput]yes Long-TermAssertions on the shape of the test case output events. The list consists of key-value pairs to be treated as a map-construct, where the index of the output event is the key, and the assertions are the value. See ParserTestCaseAssertionsForOutput.