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

Method done

src/tsutil/YamlCfg.cc:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void
59 Map::done()
60 {
61 if (!_bad && (_used_key.size() != _map.size())) {
62 std::string msg{(_map.size() - _used_key.size()) > 1 ? "keys " : "key "};
63 bool first{true};
64
65 for (auto const &kv : _map) {
66 auto key = kv.first.as<std::string>();
67
68 if (std::find(_used_key.begin(), _used_key.end(), key) == _used_key.end()) {
69 if (!first) {
70 msg += ", ";
71 }
72 first = false;
73 msg += key;
74 }
75 }
76 throw YAML::ParserException(_map.Mark(), msg + " invalid in this map");
77 }
78 }
79
80} // end namespace Yaml
81} // end namespace ts

Callers 2

_do_http_requestMethod · 0.45
CleanupMethod · 0.45

Calls 5

ParserExceptionFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
MarkMethod · 0.45

Tested by

no test coverage detected