Skip to main content

Crate ejectest

Crate ejectest 

Source

Structs§

EjectResult
The result of extracting an inline test module.
FileFilter
A validated set of file paths used to restrict which files are processed.
FileResult
Classification result for a single scanned file.
Report
Per-file results from a check or apply run.

Enums§

Classification
How a source file’s mod tests relates to the sibling-test-file convention.
EjectError
Errors that can occur during test extraction.
OutputFormat
Output format for command results.

Functions§

apply_path
Eject inline test modules from path (a single file or a directory).
check_path
Scan path (file or directory) and classify every Rust file without modifying anything.
classify_source
Classify source without modifying it.
eject_tests
Extract an inline #[cfg(test)] mod tests { ... } block from Rust source into a separate file’s content.
read_file_list
Read newline-separated file paths from a file or stdin (when source is "-"). Empty lines are skipped.
render_apply
Render an apply report.
render_check
Render a check report.