MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / long_unicode_string

Function long_unicode_string

tests/rust/src/unicode.rs:201–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200#[tokio::test]
201async fn long_unicode_string() {
202 let c = client();
203 let name = create_simple_table(c).await;
204 let val = "あ".repeat(1000);
205 let mut item = HashMap::new();
206 item.insert("pk".into(), s("k1"));
207 item.insert("val".into(), s(&val));
208 c.put_item()
209 .table_name(&name)
210 .set_item(Some(item))
211 .send()
212 .await
213 .unwrap();
214 let resp = c
215 .get_item()
216 .table_name(&name)
217 .key("pk", s("k1"))
218 .consistent_read(true)
219 .send()
220 .await
221 .unwrap();
222 assert_eq!(resp.item().unwrap().get("val").unwrap(), &s(&val));
223}
224
225#[tokio::test]
226async fn unicode_in_hash_key() {

Callers

nothing calls this directly

Calls 7

clientFunction · 0.85
sFunction · 0.85
insertMethod · 0.80
table_nameMethod · 0.80
put_itemMethod · 0.80
get_itemMethod · 0.80
create_simple_tableFunction · 0.70

Tested by

no test coverage detected