()
| 321 | |
| 322 | #[tokio::test] |
| 323 | async fn complex_multi_attribute_put() { |
| 324 | let c = client(); |
| 325 | let t = tables().await; |
| 326 | let mut item = create_item(&t.simple_key_string); |
| 327 | item.insert("strAttr".into(), s("hello")); |
| 328 | item.insert("numAttr".into(), n(123)); |
| 329 | item.insert("blobAttr".into(), b("binaryData")); |
| 330 | item.insert("ssAttr".into(), ss(&["a", "b", "c"])); |
| 331 | item.insert("nsAttr".into(), ns(&[1, 2, 3])); |
| 332 | item.insert("bsAttr".into(), bs(&["b1", "b2"])); |
| 333 | item.insert("boolAttr".into(), bool_val(true)); |
| 334 | item.insert("nullAttr".into(), null_val()); |
| 335 | item.insert("listAttr".into(), list_val(vec![s("x"), n(9)])); |
| 336 | let mut nested = HashMap::new(); |
| 337 | nested.insert("inner".into(), s("innerVal")); |
| 338 | item.insert("mapAttr".into(), map_val(nested)); |
| 339 | c.put_item() |
| 340 | .table_name(&t.simple_key_string) |
| 341 | .set_item(Some(item.clone())) |
| 342 | .send() |
| 343 | .await |
| 344 | .unwrap(); |
| 345 | check_item(c, &t.simple_key_string, &item).await; |
| 346 | } |
nothing calls this directly
no test coverage detected