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

Function FormatIssues

extensions/math_ext_test.cc:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111};
112
113std::string FormatIssues(const cel::ValidationResult& result) {
114 std::string issues;
115 for (const auto& issue : result.GetIssues()) {
116 if (!issues.empty()) {
117 absl::StrAppend(&issues, "\n",
118 issue.ToDisplayString(*result.GetSource()));
119 } else {
120 issues = issue.ToDisplayString(*result.GetSource());
121 }
122 }
123 return issues;
124}
125
126class TestFunction : public CelFunction {
127 public:

Callers 1

TEST_PFunction · 0.70

Calls 4

GetIssuesMethod · 0.80
GetSourceMethod · 0.80
emptyMethod · 0.45
ToDisplayStringMethod · 0.45

Tested by

no test coverage detected