fix: verify downloads and bound imported metadata
This commit is contained in:
1 parent
2b6750a971
commit
3149b96971
25 files changed
+678
-215
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user