| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "gate/tests.hpp" | ||
| 2 | #include "gate/data/sqlite3_adapter.hpp" | ||
| 3 | #include "gate/utilities.hpp" | ||
| 4 | #include "sql_tests.hpp" | ||
| 5 | |||
| 6 |
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(Sqlite3) |
| 7 | { | ||
| 8 | #if defined(GATE_DATA_SQLITE3_ENABLED) | ||
| 9 | using namespace gate; | ||
| 10 | using namespace gate::data; | ||
| 11 | 2 | Sqlite3DataConnection factory; | |
| 12 | { | ||
| 13 | 4 | DataConnection testConn; | |
| 14 | 4 | Result<DataConnection> connResult = factory.tryCreate(String(), Sqlite3DataConnection::Flag_InMemory); | |
| 15 |
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()); |
| 16 | } | ||
| 17 | |||
| 18 | 4 | DataConnection conn; | |
| 19 |
4/14✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
✓ Branch 14 taken 1 times.
✗ Branch 15 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
|
2 | GATEXX_TEST_CHECK_NOTHROW(conn = factory.create(String(), Sqlite3DataConnection::Flag_InMemory)); |
| 20 | |||
| 21 |
1/2✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
|
2 | run_default_sql_tests(conn); |
| 22 | #endif | ||
| 23 | 2 | } | |
| 24 |