Expand description
This crate provides the core functionality for the clitest crate as a library.
Modules§
Macros§
- clitest
- Generate
#[test]functions from inline clitest scripts. ThePWDfor the script is set to the current directory, which forcargo testis the root of the crate. - cprint
- cprintln
- cprintln_
rule - cwrite
- cwriteln
- cwriteln_
rule - Print a rule of dashes, optionally with an embedded message.
- println
Structs§
- RunError
- Error returned by
try_run_capturedandtry_run_file_captured.
Functions§
- run
- Parse and run a clitest script string. Output goes to stdout. Panics on failure.
- run_
captured - Parse and run a clitest script string. Returns captured output. Panics on failure.
- run_
file - Parse and run a clitest script file. Output goes to stdout. Panics on failure.
- run_
file_ captured - Parse and run a clitest script file. Returns captured output. Panics on failure.
- run_
with_ path - Parse and run a clitest script string. Output goes to stdout. Panics on failure.
- run_
with_ path_ captured - Parse and run a clitest script string. Returns captured output. Panics on failure.
- try_
run_ captured - Parse and run a clitest script string. Returns
Ok(output)on success, orErr(RunError)with both the error message and captured output on failure. - try_
run_ file_ captured - Parse and run a clitest script file. Returns
Ok(output)on success, orErr(RunError)with the error message and captured output on failure.