Skip to content

Commit dd2a1ac

Browse files
committed
Small changes
1 parent 5666648 commit dd2a1ac

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

tests/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
mod api_insert;
21
mod cast_any;
32
mod csv;
3+
mod insert;

tests/databases_main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

tests/util/mod.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)