Skip to main content

collect_test_fns

Function collect_test_fns 

Source
pub fn collect_test_fns<'a>(
    modules: &'a [(&'a AIRModule, &'a Path)],
) -> Vec<(&'a AIRNode, String)>
Expand description

Collect every @test-annotated top-level function across the given modules, paired with the module’s declared path (dotted, or "" if anonymous).

The result preserves module order and within-module declaration order, so the emitted test files are deterministic. Each entry borrows the FnDecl node.