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

Function test_execute_plan_empty

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

Source from the content-addressed store, hash-verified

915
916 #[test]
917 fn test_execute_plan_empty() {
918 use tempfile::tempdir;
919
920 let dir = tempdir().unwrap();
921 let repo = Repository::init(dir.path()).unwrap();
922 repo.init_vault().unwrap();
923
924 let plan = parse_plan(r#"{"schema_version":1,"steps": []}"#).unwrap();
925 let result = execute_plan(&repo, &plan).unwrap();
926 assert!(result.nodes.is_empty());
927 assert!(result.edges.is_empty());
928 assert!(result.content.is_empty());
929 assert!(result.step_stats.is_empty());
930 }
931
932 #[test]
933 fn test_execute_plan_with_read_content() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected