File tree Expand file tree Collapse file tree
crates/vespera_macro/src/schema_macro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -570,21 +570,13 @@ pub struct Target { pub id: i32 }
570570
571571 #[ test]
572572 #[ serial]
573- fn test_find_struct_by_name_unreadable_file ( ) {
574- // Note: This is hard to test reliably on all platforms
575- // We'll test by having a valid file alongside
573+ fn test_find_struct_by_name_with_valid_files ( ) {
574+ // Line 122 (Err(_) => continue) is defensive error handling
575+ // Hard to trigger reliably cross-platform - just verify function works
576576 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
577577 let src_dir = temp_dir. path ( ) ;
578578
579- // Create a valid file with the struct
580- std:: fs:: write (
581- src_dir. join ( "valid.rs" ) ,
582- "pub struct Target { pub id: i32 }" ,
583- )
584- . unwrap ( ) ;
585-
586- let mut files = Vec :: new ( ) ;
587- collect_rs_files_recursive ( src_dir, & mut files) ;
579+ std:: fs:: write ( src_dir. join ( "valid.rs" ) , "pub struct Target { pub id: i32 }" ) . unwrap ( ) ;
588580
589581 let result = find_struct_by_name_in_all_files ( src_dir, "Target" , None ) ;
590582
You can’t perform that action at this time.
0 commit comments