29 (void)result.get_protocol();
30 (void)result.get_username();
31 (void)result.get_password();
32 (void)result.get_hostname();
33 (void)result.get_port();
34 (void)result.get_pathname();
35 (void)result.get_search();
36 (void)result.get_hash();
37 (void)result.ignore_case();
38 (void)result.has_regexp_groups();
42 FuzzedDataProvider fdp(data, size);
44 std::string source_1 =
47 std::string base_source_1 =
51 std::string source_2 =
"https://ada-url.com/*";
52 std::string base_source_2 =
"https://ada-url.com";
54 std::array<std::pair<std::string, std::string>, 2> sources = {{
55 {source_1, base_source_1},
56 {source_2, base_source_2},
59 for (
const auto& [source, base_source] : sources) {
62 ada::parse_url_pattern<regex_provider>(source,
nullptr,
nullptr);
66 std::string_view base_source_view(base_source.data(), base_source.length());
67 auto result_with_base = ada::parse_url_pattern<regex_provider>(
68 source, &base_source_view,
nullptr);
73 auto result_with_base_and_options = ada::parse_url_pattern<regex_provider>(
74 source, &base_source_view, &options);
75 if (result_with_base_and_options)
87 auto result_with_init = ada::parse_url_pattern<regex_provider>(
88 init, &base_source_view,
nullptr);