pub struct TestSuiteFile<S: SuiteState> { /* private fields */ }Implementations§
Source§impl TestSuiteFile<Raw>
impl TestSuiteFile<Raw>
pub fn new(suite_path: RelativePath, source: String) -> Self
Sourcepub fn parse(self) -> Result<TestSuiteFile<Parsed>, ParseError>
pub fn parse(self) -> Result<TestSuiteFile<Parsed>, ParseError>
Scan the suite source and extract Module:Function(...)
references where Module is a literal lowercase atom. Skips
?MODULE:, apply/3, dispatch through a variable: those are
counted in Diagnostics.unanalyzed, not here.
pub fn suite_path(&self) -> &RelativePath
pub fn source(&self) -> &str
Source§impl TestSuiteFile<Parsed>
impl TestSuiteFile<Parsed>
Sourcepub fn referenced_modules(&self) -> Vec<ModuleName>
pub fn referenced_modules(&self) -> Vec<ModuleName>
Distinct helper modules referenced by the suite, in first-occurrence order. Useful for the always-on diagnostic path (no target tree required).
pub fn calls(&self) -> &[HelperCall]
Sourcepub fn resolve(
self,
target: &TargetTreeIndex,
search_path_globs: &[String],
) -> TestSuiteFile<Resolved>
pub fn resolve( self, target: &TargetTreeIndex, search_path_globs: &[String], ) -> TestSuiteFile<Resolved>
Resolve every referenced module against the target tree using
the per-family search_path_globs (e.g. deps/*/test for
ProjectFamily::Rabbitmq). Modules in is_stdlib_or_otp are
dropped: they are outside the repo, so absence there means
nothing.
pub fn suite_path(&self) -> &RelativePath
Source§impl TestSuiteFile<Resolved>
impl TestSuiteFile<Resolved>
pub fn suite_path(&self) -> &RelativePath
pub fn missing_modules(&self) -> &[MissingHelper]
Sourcepub fn into_findings(self) -> ResolvedFindings
pub fn into_findings(self) -> ResolvedFindings
Promote the missing helpers into both the typed verdict reasons and the diagnostic count map in one pass, without cloning the suite source or the parsed calls.
Trait Implementations§
Source§impl<S: Clone + SuiteState> Clone for TestSuiteFile<S>
impl<S: Clone + SuiteState> Clone for TestSuiteFile<S>
Source§fn clone(&self) -> TestSuiteFile<S>
fn clone(&self) -> TestSuiteFile<S>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more