| 43 | TYPED_TEST_SUITE(ConnectionHandleTest, TestTypesHandle); |
| 44 | |
| 45 | TEST(ODBCHandles, TestSQLAllocAndFreeEnv) { |
| 46 | // Allocate an environment handle |
| 47 | SQLHENV env; |
| 48 | ASSERT_EQ(SQL_SUCCESS, SQLAllocEnv(&env)); |
| 49 | |
| 50 | // Check for valid handle |
| 51 | ASSERT_NE(nullptr, env); |
| 52 | |
| 53 | // Free environment handle |
| 54 | ASSERT_EQ(SQL_SUCCESS, SQLFreeEnv(env)); |
| 55 | } |
| 56 | |
| 57 | TEST(ODBCHandles, TestSQLAllocAndFreeHandleConnect) { |
| 58 | SQLHENV env; |
nothing calls this directly
no test coverage detected