MCPcopy Create free account
hub / github.com/apache/trafficserver / YAMLBuildCategories

Method YAMLBuildCategories

src/proxy/IPAllow.cc:604–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604swoc::Errata
605IpAllow::YAMLBuildCategories(std::string const &content)
606{
607 YAML::Node root{YAML::Load(content)};
608 YAML::Node categories{root[YAML_TAG_CATEGORY_ROOT.data()]};
609 if (auto errata = this->YAMLLoadCategoryRoot(categories); !errata.is_ok()) {
610 return errata;
611 }
612 return {};
613}
614
615swoc::Errata
616IpAllow::YAMLLoadCategoryRoot(const YAML::Node &categories)

Callers 1

BuildCategoriesMethod · 0.95

Calls 4

YAMLLoadCategoryRootMethod · 0.95
LoadFunction · 0.85
dataMethod · 0.45
is_okMethod · 0.45

Tested by

no test coverage detected