MCPcopy Create free account
hub / github.com/NativeScript/android / test

Method test

test-app/runtime/src/main/cpp/ada/ada.h:9134–9145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9132
9133template <url_pattern_regex::regex_concept regex_provider>
9134result<bool> url_pattern<regex_provider>::test(
9135 const url_pattern_input& input, const std::string_view* base_url) {
9136 // TODO: Optimization opportunity. Rather than returning `url_pattern_result`
9137 // Implement a fast path just like `can_parse()` in ada_url.
9138 // Let result be the result of match given this's associated URL pattern,
9139 // input, and baseURL if given.
9140 // If result is null, return false.
9141 if (auto result = match(input, base_url); result.has_value()) {
9142 return result->has_value();
9143 }
9144 return tl::unexpected(errors::type_error);
9145}
9146
9147template <url_pattern_regex::regex_concept regex_provider>
9148result<std::optional<url_pattern_result>> url_pattern<regex_provider>::match(

Callers 7

validateNpmTagFunction · 0.45
readLinesFromFileFunction · 0.45
readInterfaceNamesFunction · 0.45
_testJavaProxyNameFunction · 0.45
_testClassNameFunction · 0.45
TestMethod · 0.45

Calls 2

unexpectedClass · 0.85
has_valueMethod · 0.45

Tested by 1

TestMethod · 0.36