[][src]Crate lark_test

Structs

NoErrors
TestPath

Traits

DebugWith

A Debug trait that carries a context. Most types in Lark implement it, and you can use derive(DebugWith) to get Debug-like behavior (from the lark-debug-derive crate).

ErrorSpec
IntoFileName

Functions

assert_equal

Test that two values are equal, with a better error than assert_eq

assert_expected_debug

Test that the debug output of actual_value is as expected. Gives a nice diff if things fail.

db_with_test
lark_parser_db

Creates a lark database with a single file containing the given test. Intended for tests targeting the lark_parser crate, which is not yet fully wired into everything else.

run_test
run_test_harness

Runs the test harness against a given test file. The first few arguments are the fields from TestPath.

search_files