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

Method Validate

validator/validator.cc:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36Validator::ValidationOutput Validator::Validate(const Ast& ast) const {
37 ValidationOutput result;
38 ValidationContext context(ast);
39 for (const auto& validation : validations_) {
40 if (!validation(context)) {
41 result.valid = false;
42 }
43 }
44 result.issues = context.ReleaseIssues();
45 return result;
46}
47
48void Validator::UpdateValidationResult(ValidationResult& in) const {
49 if (!in.IsValid() || in.GetAst() == nullptr) {

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

ReleaseIssuesMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64