We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d96595 commit cd8e2d6Copy full SHA for cd8e2d6
1 file changed
src/builder.rs
@@ -130,7 +130,19 @@ mod tests {
130
.join(format!("{}_{}.hdt", parent_name.unwrap_or("root"), stem));
131
132
if let Err(e) = build_hdt(std::slice::from_ref(f), &out) {
133
- failures.push(format!("{f}: {e}"));
+ failures.push(format!("{f}: build: {e}"));
134
+ continue;
135
+ }
136
+
137
+ let reader = match std::fs::File::open(&out) {
138
+ Ok(file) => std::io::BufReader::new(file),
139
+ Err(e) => {
140
+ failures.push(format!("{f}: open: {e}"));
141
142
143
+ };
144
+ if let Err(e) = hdt::Hdt::read(reader) {
145
+ failures.push(format!("{f}: read: {e}"));
146
}
147
148
0 commit comments