File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ macro_rules! _test_parse {
110110 fn name( & self ) -> & str {
111111 $crate:: _private:: push!( crate :: TESTS , _: $crate:: _private:: DynCase = $crate:: _private:: DynCase ( & $name) ) ;
112112
113- stringify!( $name)
113+ const FULL_PATH : & str = concat!( std:: module_path!( ) , "::" , stringify!( $name) ) ;
114+ let i = FULL_PATH . find( "::" ) . expect( "we have inserted this in the line above so it must be there" ) ;
115+ & FULL_PATH [ ( i+2 ) ..]
114116 }
115117 fn kind( & self ) -> $crate:: _private:: TestKind {
116118 Default :: default ( )
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ fn check() {
3030 let data = str![ [ r#"
3131
3232running 2 tests
33- test foo ... ok
34- test foo ... ok
33+ test foo ... ok
34+ test some_module:: foo ... ok
3535
36- test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out; finished in [..]s
36+ test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out; finished in [..]s
3737
3838
3939"# ] ] ;
You can’t perform that action at this time.
0 commit comments