[glib/glib-2-66: 3/4] guri: Add additional tests for scope ID parsing
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-66: 3/4] guri: Add additional tests for scope ID parsing
- Date: Wed, 7 Oct 2020 13:29:43 +0000 (UTC)
commit 30a3a1360e7efbdf1897c0193f2b42deb5cfc2e1
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Oct 5 13:52:38 2020 +0100
guri: Add additional tests for scope ID parsing
These bump up the code coverage.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib/tests/uri.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/glib/tests/uri.c b/glib/tests/uri.c
index b3843b978..b8a0c6a47 100644
--- a/glib/tests/uri.c
+++ b/glib/tests/uri.c
@@ -749,6 +749,14 @@ static const UriAbsoluteTest absolute_tests[] = {
{ NULL, NULL, NULL, -1, NULL, NULL, NULL } },
{ "http://[192.168.0.1%25em1]/", G_URI_FLAGS_NONE, FALSE, G_URI_ERROR_BAD_HOST,
{ NULL, NULL, NULL, -1, NULL, NULL, NULL } },
+ { "http://[fe80::dead:beef%2em1]/", G_URI_FLAGS_PARSE_RELAXED, TRUE, 0,
+ { "http", NULL, "fe80::dead:beef%2em1", -1, "/", NULL, NULL } },
+ { "http://[fe80::dead:beef%2em1]/", G_URI_FLAGS_NONE, FALSE, G_URI_ERROR_BAD_HOST,
+ { NULL, NULL, NULL, -1, NULL, NULL, NULL } },
+ { "http://[fe80::dead:beef%25em1%00]/", G_URI_FLAGS_PARSE_RELAXED, FALSE, G_URI_ERROR_BAD_HOST,
+ { NULL, NULL, NULL, -1, NULL, NULL, NULL } },
+ { "http://[fe80::dead:beef%25em1%00]/", G_URI_FLAGS_NONE, FALSE, G_URI_ERROR_BAD_HOST,
+ { NULL, NULL, NULL, -1, NULL, NULL, NULL } },
};
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]