gadm-ts/cpp/tests/unit/test_postgres.cpp
2026-03-23 15:32:00 +01:00

10 lines
279 B
C++

#include <catch2/catch_test_macros.hpp>
#include "postgres/postgres.h"
// Unit tests use a no-op init — no network required
TEST_CASE("postgres::ping throws without init", "[postgres]") {
// If called without init, should throw
CHECK_THROWS(postgres::ping());
}