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

Function LoadYaml

env/env_yaml.cc:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76absl::StatusOr<YAML::Node> LoadYaml(const std::string& yaml) {
77 try {
78 return YAML::Load(yaml);
79 } catch (YAML::ParserException& e) {
80 return absl::InvalidArgumentError(
81 FormatYamlErrorMessage(yaml, e.msg, e.mark));
82 }
83}
84
85absl::Status YamlError(absl::string_view yaml, const YAML::Node& node,
86 absl::string_view error) {

Callers

nothing calls this directly

Calls 1

FormatYamlErrorMessageFunction · 0.85

Tested by

no test coverage detected