1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00

Merge pull request #13445 from xokdvium/simplify-util-url

libutil: Use Boost.URL for URI parsing
This commit is contained in:
Jörg Thalheim 2025-08-04 19:46:58 +02:00 committed by GitHub
commit c7af923865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 192 additions and 81 deletions

View file

@ -0,0 +1 @@
local://?root=/foo bar/baz

View file

@ -85,10 +85,24 @@ static StoreReference localExample_2{
},
};
static StoreReference localExample_3{
.variant =
StoreReference::Specified{
.scheme = "local",
},
.params =
{
{"root", "/foo bar/baz"},
},
};
URI_TEST(local_1, localExample_1)
URI_TEST(local_2, localExample_2)
/* Test path with spaces */
URI_TEST(local_3, localExample_3)
URI_TEST_READ(local_shorthand_1, localExample_1)
URI_TEST_READ(local_shorthand_2, localExample_2)