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

Function ParseName

env/env_yaml.cc:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138absl::Status ParseName(Config& config, absl::string_view yaml,
139 const YAML::Node& root) {
140 const YAML::Node name = root["name"];
141 if (name.IsDefined()) {
142 if (!name.IsScalar()) {
143 return YamlError(yaml, name, "Node 'name' is not a string");
144 }
145 config.SetName(GetString(yaml, name));
146 }
147 return absl::OkStatus();
148}
149
150absl::Status ParseContainerConfig(Config& config, absl::string_view yaml,
151 const YAML::Node& root) {

Callers 1

EnvConfigFromYamlFunction · 0.85

Calls 3

YamlErrorFunction · 0.85
GetStringFunction · 0.85
SetNameMethod · 0.80

Tested by

no test coverage detected