()
| 132 | |
| 133 | #[test] |
| 134 | fn upsert_int_and_text_params() { |
| 135 | let bound = bind_dsl( |
| 136 | "UPSERT INTO t (id, n) VALUES ($1, $2)", |
| 137 | &[ParamValue::Text("alice".into()), ParamValue::Int64(42)], |
| 138 | ) |
| 139 | .unwrap(); |
| 140 | assert!( |
| 141 | bound.as_str().contains("'alice'"), |
| 142 | "text param not substituted: {}", |
| 143 | bound.as_str() |
| 144 | ); |
| 145 | assert!( |
| 146 | bound.as_str().contains("42"), |
| 147 | "int param not substituted: {}", |
| 148 | bound.as_str() |
| 149 | ); |
| 150 | assert!( |
| 151 | !bound.as_str().contains('$'), |
| 152 | "placeholder survived: {}", |
| 153 | bound.as_str() |
| 154 | ); |
| 155 | } |
| 156 | |
| 157 | #[test] |
| 158 | fn search_top_k_param() { |
nothing calls this directly
no test coverage detected