| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "gate/tests.h" | ||
| 2 | #include "test_uris.h" | ||
| 3 | #include "gate/uris.h" | ||
| 4 | |||
| 5 | 1 | GATE_TEST_FUNCTION(test_uris) | |
| 6 | { | ||
| 7 | 1 | gate_string_t path = GATE_STRING_INIT_EMPTY; | |
| 8 | 1 | gate_string_t abspath = GATE_STRING_INIT_EMPTY; | |
| 9 | 1 | gate_string_t query = GATE_STRING_INIT_EMPTY; | |
| 10 | |||
| 11 | 1 | GATE_TEST_UNIT_BEGIN(test_uris); | |
| 12 | |||
| 13 | /* empty string cases: */ | ||
| 14 |
1/2✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
1 | GATE_TEST_CHECK_OK(gate_uri_parse_path(&path, &abspath, &query)); |
| 15 |
1/2✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
1 | GATE_TEST_CHECK_OK(gate_uri_escape(&path, &abspath)); |
| 16 |
1/2✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
1 | GATE_TEST_CHECK_OK(gate_uri_unescape(&path, &abspath)); |
| 17 | |||
| 18 | |||
| 19 | 1 | GATE_TEST_UNIT_END; | |
| 20 | } | ||
| 21 |