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

Function FormatIssues

compiler/optional_test.cc:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57class OptionalTest : public testing::TestWithParam<TestCase> {};
58
59std::string FormatIssues(const ValidationResult& result) {
60 const Source* source = result.GetSource();
61 return absl::StrJoin(
62 result.GetIssues(), "\n",
63 [=](std::string* out, const TypeCheckIssue& issue) {
64 absl::StrAppend(
65 out, (source) ? issue.ToDisplayString(*source) : issue.message());
66 });
67}
68
69TEST_P(OptionalTest, OptionalsEnabled) {
70 const TestCase& test_case = GetParam();

Callers 2

TEST_PFunction · 0.70
TESTFunction · 0.70

Calls 4

GetSourceMethod · 0.80
GetIssuesMethod · 0.80
messageMethod · 0.80
ToDisplayStringMethod · 0.45

Tested by

no test coverage detected