From 28d294210de9610bde62888af0877a8e7b4a621f Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 14 Dec 2023 17:55:49 +0100 Subject: [PATCH] try a workaround real life is messy --- src/private.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/private.rs b/src/private.rs index 4c8b37e..ee0b980 100644 --- a/src/private.rs +++ b/src/private.rs @@ -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)]