Modules§
- config
- debug
- diff
- escaping
- executors
- This module is concerned with the execution of shell expressions from
crate::testcase::TestCase
s. The output of such executions are stored incrate::output::Output
structures, that capture the STDOUT, STDERR and exit code. - expectation
- generators
- This module is concerned with generating Markdown or Cram syntax, that is used in creating or updating test files.
- newline
- This module provides convenient handlers for handling common newline relating operations, like assuring that strings do end (or do not end) in a newline. Also, since Scrut deals with raw byte output of scripts, that may not even be unicode, the whole shabang is implemented for byte arrays as well.
- outcome
- output
- parsers
- This module is concerned with parsing test files and extracting
crate::testcase::TestCase
s from them. Part of the parsing is also the rejection of invalid formatted test files. - renderers
- This module is concerned with rendering the [
outcome::Outcome
] of test executions. - rules
- signal
- testcase
Macros§
- bformatln
- Like the
format
with an added new line character and in raw bytes - blines
- debug_
bytewise - formatln
- Like the
format
with an added new line character - lossy_
string - Convenience wrapper for
String::from_utf8_lossy