@@ -641,7 +641,9 @@ fn test_build_continuation_map_basic() {
641641 use logana:: ui:: build_continuation_map;
642642
643643 let reader = make_multiline_log ( ) ;
644- let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) ) . map ( |i| reader. get_line ( i) ) . collect ( ) ;
644+ let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) )
645+ . map ( |i| reader. get_line ( i) )
646+ . collect ( ) ;
645647 let parser = detect_format ( & sample) . expect ( "format should be detected" ) ;
646648
647649 let cmap = build_continuation_map ( & reader, parser. as_ref ( ) ) ;
@@ -699,7 +701,9 @@ async fn test_exclude_filter_hides_continuation_lines() {
699701
700702 let ( _db, mut manager) = setup ( ) . await ;
701703 let reader = make_multiline_log ( ) ;
702- let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) ) . map ( |i| reader. get_line ( i) ) . collect ( ) ;
704+ let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) )
705+ . map ( |i| reader. get_line ( i) )
706+ . collect ( ) ;
703707 let parser = detect_format ( & sample) . expect ( "format detected" ) ;
704708 let cmap = build_continuation_map ( & reader, parser. as_ref ( ) ) ;
705709
@@ -714,8 +718,14 @@ async fn test_exclude_filter_hides_continuation_lines() {
714718 // Line 0 (ERROR) excluded; lines 1 & 2 are its continuations → also excluded.
715719 // Line 3 (INFO) should be visible.
716720 assert ! ( !visible. contains( 0 ) , "ERROR entry should be hidden" ) ;
717- assert ! ( !visible. contains( 1 ) , "continuation 1 should be hidden with parent" ) ;
718- assert ! ( !visible. contains( 2 ) , "continuation 2 should be hidden with parent" ) ;
721+ assert ! (
722+ !visible. contains( 1 ) ,
723+ "continuation 1 should be hidden with parent"
724+ ) ;
725+ assert ! (
726+ !visible. contains( 2 ) ,
727+ "continuation 2 should be hidden with parent"
728+ ) ;
719729 assert ! ( visible. contains( 3 ) , "INFO entry should be visible" ) ;
720730}
721731
@@ -727,7 +737,9 @@ async fn test_include_filter_shows_continuations_with_parent() {
727737
728738 let ( _db, mut manager) = setup ( ) . await ;
729739 let reader = make_multiline_log ( ) ;
730- let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) ) . map ( |i| reader. get_line ( i) ) . collect ( ) ;
740+ let sample: Vec < & [ u8 ] > = ( 0 ..reader. line_count ( ) )
741+ . map ( |i| reader. get_line ( i) )
742+ . collect ( ) ;
731743 let parser = detect_format ( & sample) . expect ( "format detected" ) ;
732744 let cmap = build_continuation_map ( & reader, parser. as_ref ( ) ) ;
733745
@@ -742,7 +754,16 @@ async fn test_include_filter_shows_continuations_with_parent() {
742754 // Line 0 matches; its continuations (1, 2) should be shown.
743755 // Line 3 (INFO) does not match include → hidden.
744756 assert ! ( visible. contains( 0 ) , "ERROR entry should be visible" ) ;
745- assert ! ( visible. contains( 1 ) , "continuation 1 should follow its visible parent" ) ;
746- assert ! ( visible. contains( 2 ) , "continuation 2 should follow its visible parent" ) ;
747- assert ! ( !visible. contains( 3 ) , "INFO entry should be hidden (no match)" ) ;
757+ assert ! (
758+ visible. contains( 1 ) ,
759+ "continuation 1 should follow its visible parent"
760+ ) ;
761+ assert ! (
762+ visible. contains( 2 ) ,
763+ "continuation 2 should follow its visible parent"
764+ ) ;
765+ assert ! (
766+ !visible. contains( 3 ) ,
767+ "INFO entry should be hidden (no match)"
768+ ) ;
748769}
0 commit comments