pub struct PythonExtractor;Implementations§
Source§impl PythonExtractor
impl PythonExtractor
Sourcepub fn map_test_files_with_imports(
&self,
production_files: &[String],
test_sources: &HashMap<String, String>,
scan_root: &Path,
) -> Vec<FileMapping>
pub fn map_test_files_with_imports( &self, production_files: &[String], test_sources: &HashMap<String, String>, scan_root: &Path, ) -> Vec<FileMapping>
Layer 1 + Layer 2: Map test files to production files.
Trait Implementations§
Source§impl Default for PythonExtractor
impl Default for PythonExtractor
Source§impl LanguageExtractor for PythonExtractor
impl LanguageExtractor for PythonExtractor
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 PythonExtractor
impl ObserveExtractor for PythonExtractor
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, file_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 PythonExtractor
impl RefUnwindSafe for PythonExtractor
impl Send for PythonExtractor
impl Sync for PythonExtractor
impl Unpin for PythonExtractor
impl UnsafeUnpin for PythonExtractor
impl UnwindSafe for PythonExtractor
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