()
| 496 | |
| 497 | #[test] |
| 498 | fn scope_out_lifts_file_refs() { |
| 499 | // A `:::scope-out` may carry `::file-ref{path=}` leaves (same leaf a |
| 500 | // `:::task` uses) naming files declared out of scope. |
| 501 | let body = "\ |
| 502 | :::scope-out\n\ |
| 503 | The billing subsystem is off limits.\n\ |
| 504 | ::file-ref{path=src/billing.rs}\n\ |
| 505 | ::file-ref{path=src/billing/tax.rs}\n\ |
| 506 | :::"; |
| 507 | let node = lift_intent(&fm(), body).unwrap(); |
| 508 | assert_eq!(node.has_scope_out.len(), 1); |
| 509 | assert_eq!( |
| 510 | node.has_scope_out[0].files, |
| 511 | vec![ |
| 512 | "src/billing.rs".to_string(), |
| 513 | "src/billing/tax.rs".to_string() |
| 514 | ] |
| 515 | ); |
| 516 | } |
| 517 | |
| 518 | #[test] |
| 519 | fn empty_scope_files_emit_no_key() { |
nothing calls this directly
no test coverage detected