manifest decode & profile validate optimization

This commit is contained in:
2026-02-25 11:16:02 +08:00
parent 2a6a963ecd
commit 1cc3351bef
35 changed files with 4418 additions and 225 deletions

View File

@@ -18,13 +18,16 @@ fn decode_manifest_fixture_smoke() {
rpki::data_model::oid::OID_SHA256
);
assert!(mft.manifest.next_update > mft.manifest.this_update);
assert!(!mft.manifest.files.is_empty());
assert!(mft.manifest.file_count() > 0);
// The manifest file MUST NOT be listed in its own fileList.
let entries = mft
.manifest
.parse_files()
.expect("parse validated manifest fileList");
assert!(
mft.manifest
.files
entries
.iter()
.all(|f| !f.file_name.to_ascii_lowercase().ends_with(".mft"))
.all(|f| !f.file_name.as_str().to_ascii_lowercase().ends_with(".mft"))
);
}