| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "gate/tests.hpp" | ||
| 2 | #include "gate/data/odbc_adapter.hpp" | ||
| 3 | #include "gate/utilities.hpp" | ||
| 4 | #include "sql_tests.hpp" | ||
| 5 | |||
| 6 | using namespace gate; | ||
| 7 | using namespace gate::data; | ||
| 8 | |||
| 9 | |||
| 10 |
2/7✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
|
6 | GATEXX_TEST_UNIT(ODBC) |
| 11 | { | ||
| 12 | #if defined(GATE_DATA_ODBC_ENABLED) | ||
| 13 | using namespace gate; | ||
| 14 | using namespace gate::data; | ||
| 15 |
2/4✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
2 | static const StaticString odbcName = "GateTestSQLiteDB"; |
| 16 | 2 | OdbcDataConnection factory; | |
| 17 | { | ||
| 18 | 4 | Result<DataConnection> connResult = factory.tryCreate(odbcName); | |
| 19 |
4/12✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
|
2 | GATEXX_TEST_CHECK(connResult.hasValue()); |
| 20 | } | ||
| 21 | |||
| 22 | 4 | DataConnection conn; | |
| 23 |
4/14✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 12 taken 1 times.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
|
2 | GATEXX_TEST_CHECK_NOTHROW(conn = factory.create(odbcName)); |
| 24 | |||
| 25 |
1/2✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
|
2 | run_default_sql_tests(conn, false); |
| 26 | #endif | ||
| 27 | 2 | } | |
| 28 |