* test: Ensure router's HTTP error messages are stable If you change the text of an error, the tests will fail. If you add a new error variant to the `Error` enum but don't add it to the test, test compilation will fail with a "non-exhaustive patterns" message. If you remove an error variant, test compilation will fail with a "no variant named `RemovedError`" message. You can get the list of error variants and their current text via `cargo test -p router -- print_out_error_text --nocapture`. A step towards accomplishing #5863 Co-authored-by: Carol (Nichols || Goulding) <carol.nichols@gmail.com> Co-authored-by: Jake Goulding <jake.goulding@integer32.com> * fix: Remove optional commas and document macro arguments * docs: Clarify the purpose of the tests the check_errors macro generates * fix: Add tests for inner mutable batch LP error variants Co-authored-by: Carol (Nichols || Goulding) <carol.nichols@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |