MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_repeat

Function test_repeat

src/functions/string_functions.rs:344–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342
343 #[test]
344 fn test_repeat() {
345 let conn = Connection::open_in_memory().unwrap();
346 register_string_functions(&conn).unwrap();
347
348 let result: String = conn.query_row(
349 "SELECT repeat('abc', 3)",
350 [],
351 |row| row.get(0)
352 ).unwrap();
353 assert_eq!(result, "abcabcabc");
354 }
355
356 #[test]
357 fn test_reverse() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected