Skip to main content

Crate diffr_plugin_test_bodies

Crate diffr_plugin_test_bodies 

Source
Expand description

Collapse test bodies and test modules.

Structs§

Options
TestBodies
Test bodies of at least min_lines start collapsed on both sides, paired or not, so a diff reads as the code under test first. A whole test module, such as a Rust #[cfg(test)] mod tests, collapses as one fold labelled “test module”; the header stays visible and the fold expands like any other. A test body is linked to its docstring, which collapses with it.