()
| 517 | |
| 518 | #[test] |
| 519 | fn empty_scope_files_emit_no_key() { |
| 520 | // Hash back-compat: a scope item with no file-refs must serialize to |
| 521 | // exactly the pre-existing key-set (`files` is skipped when empty), so |
| 522 | // existing fixtures keep their content/substance hash. |
| 523 | let body = ":::scope-out\nSome prose boundary.\n:::"; |
| 524 | let node = lift_intent(&fm(), body).unwrap(); |
| 525 | let item = &node.has_scope_out[0]; |
| 526 | assert!(item.files.is_empty()); |
| 527 | |
| 528 | let v = serde_json::to_value(item).unwrap(); |
| 529 | let keys: Vec<&str> = v.as_object().unwrap().keys().map(String::as_str).collect(); |
| 530 | assert_eq!(keys, vec!["@id", "@type", "text"]); |
| 531 | } |
| 532 | |
| 533 | #[test] |
| 534 | fn empty_verifications_and_required_kinds_emit_no_keys() { |
nothing calls this directly
no test coverage detected