MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/coding/coding_tests/url_tests.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72char const * enc4 = "%23%24%25%5E%26%40~%5B%5D%7B%7D%28%29%7C%2A%2B%60%22%27";
73
74UNIT_TEST(Url_Join)
75{
76 TEST_EQUAL("", Join("", ""), ());
77 TEST_EQUAL("omim/", Join("", "omim/"), ());
78 TEST_EQUAL("omim/", Join("omim/", ""), ());
79 TEST_EQUAL("omim/strings", Join("omim", "strings"), ());
80 TEST_EQUAL("omim/strings", Join("omim/", "strings"), ());
81 TEST_EQUAL("../../omim/strings", Join("..", "..", "omim", "strings"), ());
82 TEST_EQUAL("../../omim/strings", Join("../", "..", "omim/", "strings"), ());
83 TEST_EQUAL("omim/strings", Join("omim/", "/strings"), ());
84 TEST_EQUAL("../../omim/strings", Join("../", "/../", "/omim/", "/strings"), ());
85 TEST_EQUAL("../omim/strings", Join("../", "", "/omim/", "/strings"), ());
86}
87
88UNIT_TEST(Url_Encode)
89{

Callers

nothing calls this directly

Calls 11

UrlEncodeFunction · 0.85
UrlDecodeFunction · 0.85
TESTFunction · 0.85
TestUrlClass · 0.85
GetHostAndPathMethod · 0.80
GetLastParamMethod · 0.80
GetParamValueMethod · 0.80
JoinFunction · 0.50
UrlClass · 0.50
IsValidMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected