MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / ListValueEqual

Method ListValueEqual

internal/json.cc:1822–1836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820 }
1821
1822 bool ListValueEqual(const google::protobuf::MessageLite& lhs,
1823 const google::protobuf::MessageLite& rhs) {
1824 const int lhs_size = lhs_accessor_->ValuesSize(lhs);
1825 const int rhs_size = rhs_accessor_->ValuesSize(rhs);
1826 if (lhs_size != rhs_size) {
1827 return false;
1828 }
1829 for (int i = 0; i < lhs_size; ++i) {
1830 if (!ValueEqual(lhs_accessor_->Values(lhs, i),
1831 rhs_accessor_->Values(rhs, i))) {
1832 return false;
1833 }
1834 }
1835 return true;
1836 }
1837
1838 bool StructEqual(const google::protobuf::MessageLite& lhs,
1839 const google::protobuf::MessageLite& rhs) {

Callers 1

JsonListEqualsFunction · 0.80

Calls 2

ValuesMethod · 0.80
ValuesSizeMethod · 0.45

Tested by

no test coverage detected