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

Function TEST_F

test/c_api/connection_test.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14};
15
16TEST_F(CApiConnectionTest, CreationAndDestroy) {
17 lbug_connection connection;
18 lbug_state state;
19 auto _database = getDatabase();
20 state = lbug_connection_init(_database, &connection);
21 ASSERT_EQ(state, LbugSuccess);
22 ASSERT_NE(connection._connection, nullptr);
23 auto connectionCpp = static_cast<Connection*>(connection._connection);
24 ASSERT_NE(connectionCpp, nullptr);
25 lbug_connection_destroy(&connection);
26}
27
28TEST_F(CApiConnectionTest, CreationAndDestroyWithNullDatabase) {
29 lbug_connection connection;

Callers

nothing calls this directly

Tested by

no test coverage detected