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

Function test_execute_plan_empty

atomic-repository/src/query_plan.rs:814–827  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

812
813 #[test]
814 fn test_execute_plan_empty() {
815 use tempfile::tempdir;
816
817 let dir = tempdir().unwrap();
818 let repo = Repository::init(dir.path()).unwrap();
819 repo.init_vault().unwrap();
820
821 let plan = parse_plan(r#"{"steps": []}"#).unwrap();
822 let result = execute_plan(&repo, &plan).unwrap();
823 assert!(result.nodes.is_empty());
824 assert!(result.edges.is_empty());
825 assert!(result.content.is_empty());
826 assert!(result.step_stats.is_empty());
827 }
828
829 #[test]
830 fn test_execute_plan_with_read_content() {

Callers

nothing calls this directly

Calls 5

parse_planFunction · 0.85
execute_planFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45
init_vaultMethod · 0.45

Tested by

no test coverage detected