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

Function count_urlpattern_parse_invalid

benchmarks/urlpattern.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51size_t count_urlpattern_parse_invalid() {
52 size_t how_many = 0;
53 for (const auto& [base, input] : url_pattern_examples) {
54 auto result =
55 ada::parse_url_pattern<ada::url_pattern_regex::std_regex_provider>(
56 input, &base, nullptr);
57 if (!result) {
58 how_many++;
59 }
60 }
61
62 return how_many;
63}
64
65size_t count_urlpattern_exec_invalid() {
66 size_t how_many = 0;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected