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

Method match

lib/catch2/catch.hpp:3685–3692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3683 ApproxMatcher(std::vector<T, AllocComp> const& comparator) : m_comparator( comparator ) {}
3684
3685 bool match(std::vector<T, AllocMatch> const &v) const override {
3686 if (m_comparator.size() != v.size())
3687 return false;
3688 for (std::size_t i = 0; i < v.size(); ++i)
3689 if (m_comparator[i] != approx(v[i]))
3690 return false;
3691 return true;
3692 }
3693 std::string describe() const override {
3694 return "is approx: " + ::Catch::Detail::stringify( m_comparator );
3695 }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected