You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
single-panic-test had a problem and crashed. To help us diagnose the problem you can send us a crash report.
133
+
134
+
We have generated a report file at "[..].toml". Submit an issue or email with the subject of "single-panic-test Crash Report" and include the report as an attachment.
135
+
136
+
- Authors: Human Panic Authors <human-panic-crate@example.com>
137
+
138
+
We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.
139
+
140
+
Thank you kindly!
141
+
142
+
"#]])
143
+
.code(101);
144
+
145
+
#[cfg(unix)]
146
+
{
147
+
letmut files = root_path
148
+
.read_dir()
149
+
.unwrap()
150
+
.map(|e| {
151
+
let e = e.unwrap();
152
+
let path = e.path();
153
+
let content = std::fs::read_to_string(&path);
154
+
(path, content)
155
+
})
156
+
.collect::<Vec<_>>();
157
+
assert_eq!(files.len(),1,"{files:?}");
158
+
let(_, report) = files.pop().unwrap();
159
+
let report = report.unwrap();
160
+
snapbox::assert_data_eq!(
161
+
report,
162
+
snapbox::str![[r#"
163
+
name = "single-panic-test"
164
+
operating_system = "[..]"
165
+
crate_version = "0.1.0"
166
+
explanation = """
167
+
Panic occurred in file 'tests/single-panic/src/main.rs' at line [..]
0 commit comments