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:
commit
c7af923865
12 changed files with 192 additions and 81 deletions
1
src/libstore-tests/data/store-reference/local_3.txt
Normal file
1
src/libstore-tests/data/store-reference/local_3.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
local://?root=/foo bar/baz
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue