Skip to main content

Crate marque_test_utils

Crate marque_test_utils 

Source
Expand description

Shared test utilities for the marque workspace.

Provides uniform access to tests/corpus/ fixtures from any crate’s test suite. Add this crate as a [dev-dependencies] path dependency.

Structs§

ExpectedDiagnostic
Expected diagnostic from a .expected.json sidecar file.
ExpectedFixture
Expected diagnostics loaded from a .expected.json file.
ExpectedSpan
Expected byte span.

Functions§

corpus_root
Returns the absolute path to the corpus root directory.
fixtures_in
Returns paths to all .txt fixture files under the given corpus subdirectory.
invalid_fixtures
Returns all invalid (known-bad) fixture paths.
load_expected
Load the .expected.json sidecar for a given fixture path.
load_fixture
Load fixture text content as bytes.
prose_fixtures
Returns all prose corpus fixture paths.
valid_fixtures
Returns all valid (known-good) fixture paths.