()
| 188 | |
| 189 | #[tokio::test] |
| 190 | async fn query_gsi_empty_result() { |
| 191 | let c = client(); |
| 192 | let t = tables().await; |
| 193 | let table = &t.simple_key_string_gsi; |
| 194 | let gsi_hash = format!("gsi_empty_{}", ts()); |
| 195 | |
| 196 | let resp = c |
| 197 | .query() |
| 198 | .table_name(table) |
| 199 | .index_name(GSI_NAME) |
| 200 | .key_condition_expression("#h = :hv") |
| 201 | .expression_attribute_names("#h", GSI_HASH_KEY) |
| 202 | .expression_attribute_values(":hv", s(&gsi_hash)) |
| 203 | .send() |
| 204 | .await |
| 205 | .unwrap(); |
| 206 | |
| 207 | assert_eq!(resp.count(), 0); |
| 208 | } |
| 209 | |
| 210 | #[tokio::test] |
| 211 | async fn query_gsi_scan_index_forward_false() { |
nothing calls this directly
no test coverage detected