MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / scope_out_lifts_file_refs

Function scope_out_lifts_file_refs

atomic-canonical/src/lift.rs:498–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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\
503The 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() {

Callers

nothing calls this directly

Calls 3

lift_intentFunction · 0.85
fmFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected