| 14 | }; |
| 15 | |
| 16 | TEST_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 | |
| 28 | TEST_F(CApiConnectionTest, CreationAndDestroyWithNullDatabase) { |
| 29 | lbug_connection connection; |
nothing calls this directly
no test coverage detected