test.assertions
A list of expectations for assertions
.
Type: list of (submodule)
Default:
Expect count == 0
Declared by:
test.assertions.*.expect
If non-null, will be used together with value
to define predicate
.
Type: null or one of “any”, “anyExact”, “count”
Default:
null
Declared by:
test.assertions.*.message
The assertion message.
If the value is a function, it is called with the same list of warning/assertion messages that is applied to predicate
.
Type: string or function that evaluates to a(n) string
Default:
If assertion
is non-null, a default is computed. Otherwise, there is no default.
Declared by:
test.assertions.*.predicate
A predicate of that determines whether this expectation is met.
Type
[String] -> Boolean
Parameters
- values - all warnings or matched assertions
Type: function that evaluates to a(n) boolean
Declared by:
test.assertions.*.value
If defined, will be used together with expect
to define predicate
.
Type: Depends on `expect`:
- “any”: string
- “anyExact”: string
- “count”: unsigned integer, meaning >=0
Declared by: