MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / TEST_F

Function TEST_F

test/c_api/database_test.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30TEST_F(CApiDatabaseTest, CreationAndDestroy) {
31 lbug_database database;
32 lbug_state state;
33 auto databasePathCStr = databasePath.c_str();
34 auto systemConfig = defaultSystemConfig;
35 state = lbug_database_init(databasePathCStr, systemConfig, &database);
36 ASSERT_EQ(state, LbugSuccess);
37 ASSERT_NE(database._database, nullptr);
38 auto databaseCpp = static_cast<Database*>(database._database);
39 ASSERT_NE(databaseCpp, nullptr);
40 lbug_database_destroy(&database);
41}
42
43TEST_F(CApiDatabaseTest, CreationReadOnly) {
44 lbug_database database;

Callers

nothing calls this directly

Calls 15

lbug_database_initFunction · 0.85
lbug_database_destroyFunction · 0.85
lbug_connection_initFunction · 0.85
lbug_connection_queryFunction · 0.85
lbug_connection_destroyFunction · 0.85
getClientContextFunction · 0.85
lbug_value_get_int64Function · 0.85

Tested by

no test coverage detected