MCPcopy Create free account
hub / github.com/ada-url/ada / TEST

Function TEST

tests/basic_tests.cpp:383–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383TEST(basic_tests, can_parse) {
384 ASSERT_TRUE(ada::can_parse("https://www.yagiz.co"));
385 std::string_view base = "https://yagiz.co";
386 ASSERT_TRUE(ada::can_parse("/hello", &base));
387
388 std::string_view invalid_base = "!!!!!!!1";
389 ASSERT_FALSE(ada::can_parse("/hello", &invalid_base));
390 ASSERT_FALSE(ada::can_parse("!!!"));
391 SUCCEED();
392}
393
394TYPED_TEST(basic_tests, node_issue_48254) {
395 auto base_url = ada::parse<TypeParam>("localhost:80");

Callers

nothing calls this directly

Calls 10

can_parseFunction · 0.85
validateMethod · 0.80
set_pathnameMethod · 0.45
get_pathnameMethod · 0.45
get_searchMethod · 0.45
get_hashMethod · 0.45
set_hostnameMethod · 0.45
set_hostMethod · 0.45
get_hrefMethod · 0.45
has_searchMethod · 0.45

Tested by

no test coverage detected