pub struct TypeScriptExtractor;Implementations§
Source§impl TypeScriptExtractor
impl TypeScriptExtractor
Sourcepub fn map_test_files(
&self,
production_files: &[String],
test_files: &[String],
) -> Vec<FileMapping>
pub fn map_test_files( &self, production_files: &[String], test_files: &[String], ) -> Vec<FileMapping>
Layer 1: Map test files to production files by filename convention.
Sourcepub fn extract_routes(&self, source: &str, file_path: &str) -> Vec<Route>
pub fn extract_routes(&self, source: &str, file_path: &str) -> Vec<Route>
Extract NestJS routes from a controller source file.
Sourcepub fn extract_decorators(
&self,
source: &str,
file_path: &str,
) -> Vec<DecoratorInfo>
pub fn extract_decorators( &self, source: &str, file_path: &str, ) -> Vec<DecoratorInfo>
Extract gap-relevant decorators (guards, pipes, validators) from source.
Source§impl TypeScriptExtractor
impl TypeScriptExtractor
pub fn map_test_files_with_imports( &self, production_files: &[String], test_sources: &HashMap<String, String>, scan_root: &Path, ) -> Vec<FileMapping>
Trait Implementations§
Source§impl Default for TypeScriptExtractor
impl Default for TypeScriptExtractor
Source§impl LanguageExtractor for TypeScriptExtractor
impl LanguageExtractor for TypeScriptExtractor
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 TypeScriptExtractor
impl ObserveExtractor for TypeScriptExtractor
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 TypeScriptExtractor
impl RefUnwindSafe for TypeScriptExtractor
impl Send for TypeScriptExtractor
impl Sync for TypeScriptExtractor
impl Unpin for TypeScriptExtractor
impl UnsafeUnpin for TypeScriptExtractor
impl UnwindSafe for TypeScriptExtractor
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