File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed
Expand file tree Collapse file tree 4 files changed +14
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1- mod api_insert;
21mod cast_any;
32mod csv;
3+ mod insert;
Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ fn main() {
2424 database. name
2525 ) ;
2626 for test in inventory:: iter :: < Test > {
27- if !database. exceptions . iter ( ) . any ( |exception| {
28- test. name
29- . starts_with ( & format ! ( "databases::ability::{}" , exception) )
30- } ) {
27+ let name = test. name . strip_prefix ( concat ! ( module_path!( ) , "::" , "ability::" ) ) . unwrap ( ) ;
28+ if !database
29+ . exceptions
30+ . iter ( )
31+ . any ( |exception| name. starts_with ( exception) )
32+ {
3133 run ! ( test, database. init) ;
3234 }
3335 }
Original file line number Diff line number Diff line change @@ -24,14 +24,19 @@ macro_rules! run {
2424 indicatif:: { ProgressBar , ProgressStyle } ,
2525 std:: panic:: catch_unwind,
2626 } ;
27- let progress = ProgressBar :: new_spinner( ) . with_message( $test. name) ;
27+ let progress = ProgressBar :: new_spinner( ) . with_message(
28+ $test
29+ . name
30+ . strip_prefix( concat!( module_path!( ) , "::" ) )
31+ . unwrap( ) ,
32+ ) ;
2833 progress. set_style(
2934 ProgressStyle :: default_spinner( )
3035 . template( "[Running]\t {msg:50.yellow} {spinner}" )
3136 . tick_chars( "|/—\\ *" ) ,
3237 ) ;
3338 progress. enable_steady_tick( 100 ) ;
34- // progress.tick(); // Aesthetic -- in case too fast
39+ // progress.tick(); // Aesthetic -- in case too fast
3540 match catch_unwind( || ( $test. test) ( $storage( $test. name) ) ) {
3641 Ok ( _) => {
3742 progress. set_style(
You can’t perform that action at this time.
0 commit comments