补充 AGC manifest 未知 kind 验收
验证旧值读取为 Unknown 且序列化为 unknown 明确不执行 alias 迁移
This commit is contained in:
@@ -2173,6 +2173,14 @@ mod tests {
|
||||
serde_json::from_value(value).expect("asset entry should deserialize")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn manifest_unknown_kind_is_preserved_as_unknown_without_alias_migration() {
|
||||
let entry = asset_entry_from_json(asset_entry_json("ui"));
|
||||
assert_eq!(entry.kind, GameCreationAppAssetKind::Unknown);
|
||||
let serialized = serde_json::to_value(entry).expect("unknown asset entry serializes");
|
||||
assert_eq!(serialized["kind"], "unknown");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn asset_category_mapping_covers_every_canonical_kind() {
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user