()
| 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() { |
nothing calls this directly
no test coverage detected