MCPcopy Create free account
hub / github.com/apache/trafficserver / compare

Method compare

plugins/experimental/txn_box/plugin/src/query.cc:581–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581auto
582Mod_query_filter::compare(Context &ctx, QPair const &qp) const -> Case const *
583{
584 using fstr = feature_type_for<STRING>;
585 for (auto const &c : _cases) {
586 if ((!c._cmp || (*c._cmp)(ctx, fstr(qp.name))) && (!c._value_cmp || (*c._value_cmp)(ctx, fstr(qp.value)))) {
587 return &c;
588 }
589 }
590 return nullptr;
591}
592
593void
594Mod_query_filter::Case::assign(Comparison::Handle &&handle)

Callers 13

operator()Method · 0.95
initializeMethod · 0.45
ValidateBenchFunction · 0.45
updateAllowedHeadersFunction · 0.45
getCmcdNorFunction · 0.45
initMethod · 0.45
cert_verificationFunction · 0.45
getCookieByNameFunction · 0.45
constructMethod · 0.45

Calls

no outgoing calls

Tested by 2

ValidateBenchFunction · 0.36