Struct term_transcript::test::TestConfig [−][src]
pub struct TestConfig { /* fields omitted */ }
This is supported on crate feature
test
only.Expand description
Implementations
impl TestConfig
[src]
impl TestConfig
[src]pub fn new<Ext>(shell_options: ShellOptions<Ext>) -> Self
[src]
pub fn new<Ext>(shell_options: ShellOptions<Ext>) -> Self
[src]Creates a new config.
pub fn with_match_kind(&mut self, kind: MatchKind) -> &mut Self
[src]
pub fn with_match_kind(&mut self, kind: MatchKind) -> &mut Self
[src]Sets the matching kind applied.
pub fn with_color_choice(&mut self, color_choice: ColorChoice) -> &mut Self
[src]
pub fn with_color_choice(&mut self, color_choice: ColorChoice) -> &mut Self
[src]Sets coloring of the output.
pub fn with_output(&mut self, output: TestOutputConfig) -> &mut Self
[src]
pub fn with_output(&mut self, output: TestOutputConfig) -> &mut Self
[src]Configures test output.
pub fn test_transcript(&mut self, transcript: &Transcript<Parsed>)
[src]
pub fn test_transcript(&mut self, transcript: &Transcript<Parsed>)
[src]Tests the transcript
.
Panics
- Panics if an error occurs during reproducing the transcript or processing its output.
- Panics if there are mismatches between outputs in the original and reproduced transcripts.
pub fn test_transcript_for_stats(
&mut self,
transcript: &Transcript<Parsed>
) -> Result<TestStats>
[src]
pub fn test_transcript_for_stats(
&mut self,
transcript: &Transcript<Parsed>
) -> Result<TestStats>
[src]Tests the transcript
and returns testing results.
Errors
- Returns an error if an error occurs during reproducing the transcript or processing its output.