()
| 156 | |
| 157 | #[test] |
| 158 | fn search_top_k_param() { |
| 159 | let bound = bind_dsl( |
| 160 | "SEARCH v USING VECTOR(ARRAY[1.0, 0.0, 0.0], $1)", |
| 161 | &[ParamValue::Int64(5)], |
| 162 | ) |
| 163 | .unwrap(); |
| 164 | assert!(bound.as_str().contains(", 5)"), "got: {}", bound.as_str()); |
| 165 | } |
| 166 | |
| 167 | /// String literals that happen to contain `$1` must not be touched |
| 168 | /// — the tokenizer has already classified the `$1` inside quotes |
nothing calls this directly
no test coverage detected