test.warnings

A list of expectations for warnings.

Type: list of (submodule)

Default: Expect count == 0

Declared by:

test.warnings.*.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.warnings.*.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.warnings.*.predicate

A predicate of that determines whether this expectation is met.

Type

[String] -> Boolean

Parameters

  1. values - all warnings or matched assertions

Type: function that evaluates to a(n) boolean

Declared by:

test.warnings.*.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: