// This translation unit deliberately includes only the supported platform facade. #include #ifdef SQLITE_VERSION #error "The public session facade must not expose SQLite headers" #endif #include void test_public_session_interface() { if (!metasequoia::Session::is_supported_helpcode_schema("xiaohe") || metasequoia::Session::is_supported_helpcode_schema("unknown-schema")) throw std::runtime_error("Public session cannot validate a host helpcode preference"); bool rejected = false; try { metasequoia::Session session(metasequoia::SessionOptions{}); } catch (const std::invalid_argument &) { rejected = true; } if (!rejected) throw std::runtime_error("Public session accepted unspecified runtime paths"); }