pub struct RustExtractor;Implementations§
Source§impl RustExtractor
impl RustExtractor
Sourcepub fn map_test_files_with_imports(
&self,
production_files: &[String],
test_sources: &HashMap<String, String>,
scan_root: &Path,
l1_exclusive: bool,
) -> Vec<FileMapping>
pub fn map_test_files_with_imports( &self, production_files: &[String], test_sources: &HashMap<String, String>, scan_root: &Path, l1_exclusive: bool, ) -> Vec<FileMapping>
Layer 0 + Layer 1 + Layer 2: Map test files to production files.
Layer 0: Inline test self-mapping (#[cfg(test)] in production files) Layer 1: Filename convention matching Layer 2: Import tracing (use crate::…)
Trait Implementations§
Source§impl Default for RustExtractor
impl Default for RustExtractor
Source§impl LanguageExtractor for RustExtractor
impl LanguageExtractor for RustExtractor
fn extract_test_functions( &self, source: &str, file_path: &str, ) -> Vec<TestFunction>
Source§fn extract_file_analysis(&self, source: &str, file_path: &str) -> FileAnalysis
fn extract_file_analysis(&self, source: &str, file_path: &str) -> FileAnalysis
Extract file-level analysis including imports and parameterized test counts.
Default impl delegates to
extract_test_functions with file-level fields as false/0.
Language extractors MUST override this to provide accurate detection.Source§impl ObserveExtractor for RustExtractor
impl ObserveExtractor for RustExtractor
fn extract_production_functions( &self, source: &str, file_path: &str, ) -> Vec<ProductionFunction>
fn extract_imports(&self, source: &str, file_path: &str) -> Vec<ImportMapping>
fn extract_all_import_specifiers( &self, source: &str, ) -> Vec<(String, Vec<String>)>
fn extract_barrel_re_exports( &self, source: &str, file_path: &str, ) -> Vec<BarrelReExport>
fn source_extensions(&self) -> &[&str]
fn index_file_names(&self) -> &[&str]
fn production_stem<'a>(&self, path: &'a str) -> Option<&'a str>
fn test_stem<'a>(&self, path: &'a str) -> Option<&'a str>
fn is_non_sut_helper(&self, file_path: &str, is_known_production: bool) -> bool
fn file_exports_any_symbol(&self, path: &Path, symbols: &[String]) -> bool
fn is_barrel_file(&self, path: &str) -> bool
fn resolve_alias_imports( &self, _source: &str, _scan_root: &Path, ) -> Vec<(String, Vec<String>, Option<PathBuf>)>
Auto Trait Implementations§
impl Freeze for RustExtractor
impl RefUnwindSafe for RustExtractor
impl Send for RustExtractor
impl Sync for RustExtractor
impl Unpin for RustExtractor
impl UnsafeUnpin for RustExtractor
impl UnwindSafe for RustExtractor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more