Crate ra_ap_test_utils[−][src]
Expand description
Assorted testing utilities.
Most notable things are:
- Rich text comparison, which outputs a diff.
- Extracting markup (mainly,
$0
markers) out of fixture strings. - marks (see the eponymous module).
Modules
bench_fixture | Generates large snippets of Rust code for usage in the benchmarks. |
Macros
assert_eq_text | Asserts that two strings are equal, otherwise displays a rich diff between them. |
Structs
AssertLinear | |
Fixture |
Enums
RangeOrOffset |
Constants
CURSOR_MARKER | |
ESCAPED_CURSOR_MARKER |
Functions
__diff | |
add_cursor | Inserts |
bench | Utility for writing benchmark tests. |
ensure_file_contents | Checks that the |
extract_annotations | Extracts |
extract_offset | Infallible version of |
extract_range | Infallible version of |
extract_range_or_offset | Extracts |
extract_tags | Extracts ranges, marked with |
format_diff | |
project_root | Returns the path to the root directory of |
skip_slow_tests | Returns |
try_ensure_file_contents | Checks that the |
Type Definitions
FxHashMap | Type alias for a hashmap using the |