update-bundle/tests/fuzz_regressions.rs
//! **Inputs holger-fuzz found** (`fuzz/`, lane OSSF-NEXT): each one is refused by name and
//! never panics the process that opens it (holger-verify, the inbox import, the server).
use std::path::Path;
fn fixture(name: &str) -> std::path::PathBuf {
Path::new(env!("CARGO_MANIFEST_DIR"))
.join("tests/fixtures/fuzz")
.join(name)
}
/// `bundle_verify`, 2026-10-30: a bundle whose znippy index carries an Arrow schema field of
/// type NONE. arrow-ipc 59 answers that with `unimplemented!` (convert.rs), so opening the
/// bundle panicked instead of refusing it.
#[test]
fn a_bundle_whose_index_names_an_arrow_type_none_is_refused_not_a_panic() {
let p = fixture("arrow-type-none.holger.znippy");
let e = holger_update_bundle::load_bundle(&p).expect_err("a malformed index is refused");
assert!(e.to_string().contains("bundle archive"), "{e}");
}