MCPcopy Create free account
hub / github.com/bytedance/bolt / equalWithEpsilon

Method equalWithEpsilon

bolt/exec/tests/utils/QueryAssertions.cpp:676–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676bool MaterializedRowEpsilonComparator::equalWithEpsilon(
677 const MaterializedRow& lhs,
678 const MaterializedRow& rhs) const {
679 if (lhs.size() != rhs.size()) {
680 return false;
681 }
682 auto size = lhs.size();
683 for (auto i = 0; i < size; ++i) {
684 if (!lhs[i].equalsWithEpsilon(rhs[i])) {
685 return false;
686 }
687 }
688 return true;
689}
690
691std::string makeErrorMessage(
692 const std::vector<MaterializedRow>& missingRows,

Callers

nothing calls this directly

Calls 2

equalsWithEpsilonMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected