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

Method ValidateOrError

eval/compiler/flat_expr_builder.cc:1767–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765 // error status message.
1766 template <typename... MP>
1767 bool ValidateOrError(bool valid_expression, absl::string_view error_message,
1768 MP... message_parts) {
1769 if (valid_expression) {
1770 return true;
1771 }
1772 SetProgressStatusError(absl::InvalidArgumentError(
1773 absl::StrCat(error_message, message_parts...)));
1774 return false;
1775 }
1776
1777 private:
1778 struct ComprehensionStackRecord {

Callers 3

PreVisitMethod · 0.80
PostVisitArgMethod · 0.80
PostVisitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected