Skip to content

Commit

Permalink
try a workaround
Browse files Browse the repository at this point in the history
real life is messy
  • Loading branch information
flub committed Dec 14, 2023
1 parent 0676c10 commit 28d2942
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ pub fn extract_test_name_from_backtrace(module_path: &str) -> String {
}
}
}
panic!("Cannot determine test name from backtrace");

// We know that on windows doc tests fallthrough as the module_path is something like
// "rust_out" which is not very useful. We'll have to just use something.
String::from("unknown_test")
}

#[cfg(test)]
Expand Down

0 comments on commit 28d2942

Please sign in to comment.