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

Function test_version_function

src/functions/system_functions.rs:523–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521
522 #[test]
523 fn test_version_function() {
524 let conn = Connection::open_in_memory().unwrap();
525 register_system_functions(&conn).unwrap();
526
527 let version: String = conn.query_row("SELECT version()", [], |row| row.get(0)).unwrap();
528 assert!(version.starts_with("PostgreSQL"));
529 assert!(version.contains("pgsqlite"));
530 }
531
532 #[test]
533 fn test_current_database() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected