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

Function test_parse_vector_search

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

Source from the content-addressed store, hash-verified

584
585 #[test]
586 fn test_parse_vector_search() {
587 let json = r#"{
588 "schema_version": 1,
589 "steps": [
590 {"type": "vector_search", "query": "caching performance", "top_k": 3}
591 ]
592 }"#;
593 let plan = parse_plan(json).unwrap();
594 assert_eq!(plan.steps.len(), 1);
595 }
596
597 #[test]
598 fn test_parse_defaults() {

Callers

nothing calls this directly

Calls 2

parse_planFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected