@@ -623,34 +623,54 @@ fn run_path(poisoned: &mut bool, path: &Path, buf: &[u8]) {
623
623
#[ test]
624
624
fn test_unknown_directive_check ( ) {
625
625
let mut poisoned = false ;
626
- run_path ( & mut poisoned, Path :: new ( "a.rs" ) , include_bytes ! ( "./directive_checks/unknown_directive.rs" ) ) ;
626
+ run_path (
627
+ & mut poisoned,
628
+ Path :: new ( "a.rs" ) ,
629
+ include_bytes ! ( "./directive_checks/unknown_directive.rs" ) ,
630
+ ) ;
627
631
assert ! ( poisoned) ;
628
632
}
629
633
630
634
#[ test]
631
635
fn test_known_legacy_directive_check ( ) {
632
636
let mut poisoned = false ;
633
- run_path ( & mut poisoned, Path :: new ( "a.rs" ) , include_bytes ! ( "./directive_checks/known_legacy_directive.rs" ) ) ;
637
+ run_path (
638
+ & mut poisoned,
639
+ Path :: new ( "a.rs" ) ,
640
+ include_bytes ! ( "./directive_checks/known_legacy_directive.rs" ) ,
641
+ ) ;
634
642
assert ! ( poisoned) ;
635
643
}
636
644
637
645
#[ test]
638
646
fn test_known_directive_check_no_error ( ) {
639
647
let mut poisoned = false ;
640
- run_path ( & mut poisoned, Path :: new ( "a.rs" ) , include_bytes ! ( "./directive_checks/known_directive.rs" ) ) ;
648
+ run_path (
649
+ & mut poisoned,
650
+ Path :: new ( "a.rs" ) ,
651
+ include_bytes ! ( "./directive_checks/known_directive.rs" ) ,
652
+ ) ;
641
653
assert ! ( !poisoned) ;
642
654
}
643
655
644
656
#[ test]
645
657
fn test_error_annotation_no_error ( ) {
646
658
let mut poisoned = false ;
647
- run_path ( & mut poisoned, Path :: new ( "a.rs" ) , include_bytes ! ( "./directive_checks/error_annotation.rs" ) ) ;
659
+ run_path (
660
+ & mut poisoned,
661
+ Path :: new ( "a.rs" ) ,
662
+ include_bytes ! ( "./directive_checks/error_annotation.rs" ) ,
663
+ ) ;
648
664
assert ! ( !poisoned) ;
649
665
}
650
666
651
667
#[ test]
652
668
fn test_non_rs_unknown_directive_not_checked ( ) {
653
669
let mut poisoned = false ;
654
- run_path ( & mut poisoned, Path :: new ( "a.Makefile" ) , include_bytes ! ( "./directive_checks/not_rs.Makefile" ) ) ;
670
+ run_path (
671
+ & mut poisoned,
672
+ Path :: new ( "a.Makefile" ) ,
673
+ include_bytes ! ( "./directive_checks/not_rs.Makefile" ) ,
674
+ ) ;
655
675
assert ! ( !poisoned) ;
656
676
}
0 commit comments