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

Function test_reverse

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

Source from the content-addressed store, hash-verified

355
356 #[test]
357 fn test_reverse() {
358 let conn = Connection::open_in_memory().unwrap();
359 register_string_functions(&conn).unwrap();
360
361 let result: String = conn.query_row(
362 "SELECT reverse('hello')",
363 [],
364 |row| row.get(0)
365 ).unwrap();
366 assert_eq!(result, "olleh");
367 }
368
369 #[test]
370 fn test_left_right() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected