fix: verify downloads and bound imported metadata

This commit is contained in:
objz committed 2026-10-01 17:44:06 +02:00
1 parent 2b6750a971
commit 3149b96971
25 files changed
+678 -215

No files matched your search

+9
View File
@@ -2,6 +2,15 @@
// SPDX-License-Identifier: GPL-3.0-only
use super::*;
#[test]
fn local_metadata_reads_have_a_size_limit() {
assert_eq!(
super::super::read_local_metadata(&b"icon"[..]),
Some(b"icon".to_vec())
);
assert!(super::super::read_local_metadata(std::io::repeat(0)).is_none());
}
use crate::instance::content::entry::{ContentEntry, toggle_entry};
use std::path::PathBuf;