v0.18.0
[0.18.0] - 2023-11-08
-
Support matching multiline error message under
----
for bothstatement error
andquery error
.query error SELECT 1/0; ---- db error: ERROR: Failed to execute query Caused by these errors: 1: Failed to evaluate expression: 1/0 2: Division by zero
The output error message must be the exact match of the expected one to pass the test, except for the leading and trailing whitespaces. Users may use
--override
to let the runner update the test files with the actual output.Empty lines are allowed in the expected error message. As a result, the message must end with two consecutive empty lines.
Breaking changes in the parser:
- Add new variants to
ParseErrorKind
. Mark it as#[non_exhaustive]
. - Change the type of
expected_error
fromRegex
toExpectedError
, which is either a inlineRegex
or multilineString
.
- Add new variants to