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

Method AddIssue

runtime/internal/issue_collector.h:46–52  ·  view source on GitHub ↗

Collect an Issue. Returns a status according to the IssueCollector's policy and the given Issue. The Issue is always added to issues, regardless of whether AddIssue returns a non-ok status.

Source from the content-addressed store, hash-verified

44 // The Issue is always added to issues, regardless of whether AddIssue returns
45 // a non-ok status.
46 absl::Status AddIssue(RuntimeIssue issue) {
47 issues_.push_back(std::move(issue));
48 if (issues_.back().severity() >= severity_limit_) {
49 return issues_.back().ToStatus();
50 }
51 return absl::OkStatus();
52 }
53
54 absl::Span<const RuntimeIssue> issues() const { return issues_; }
55 std::vector<RuntimeIssue> ExtractIssues() { return std::move(issues_); }

Callers 1

TESTFunction · 0.45

Calls 2

severityMethod · 0.45
ToStatusMethod · 0.45

Tested by 1

TESTFunction · 0.36