Skip to main content

Module testing

Module testing 

Source

Modules§

parser

Macros§

assert_diagnostic
Assert that the given diagnostic/error value, when rendered to stdout, contains the given pattern
assert_diagnostic_lines
Like assert_diagnostic, but matches each non-empty line of the rendered output to a corresponding pattern.
parse_module
regex
Create a Pattern::Regex from the given input
source_file
Construct an ::alloc::sync::Arc<miden_core::debuginfo::SourceFile> from a string literal or expression, such that emitted diagnostics reference the file and line on which the source file was constructed.

Structs§

TestContext
A TestContext provides common functionality for all tests which interact with an Assembler.

Enums§

Pattern
Represents a pattern for matching text abstractly for use in asserting contents of complex diagnostics