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

Function test_parse_vector_search

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

Source from the content-addressed store, hash-verified

493
494 #[test]
495 fn test_parse_vector_search() {
496 let json = r#"{
497 "steps": [
498 {"type": "vector_search", "query": "caching performance", "top_k": 3}
499 ]
500 }"#;
501 let plan = parse_plan(json).unwrap();
502 assert_eq!(plan.steps.len(), 1);
503 }
504
505 #[test]
506 fn test_parse_defaults() {

Callers

nothing calls this directly

Calls 2

parse_planFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected