MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / log_format_from_name

Function log_format_from_name

tests/framework/printers/Printers.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace framework
35{
36LogFormat log_format_from_name(const std::string &name)
37{
38 static const std::map<std::string, LogFormat> formats = {
39 {"pretty", LogFormat::PRETTY},
40 {"none", LogFormat::NONE},
41 {"json", LogFormat::JSON},
42 };
43
44 try
45 {
46 return formats.at(tolower(name));
47 }
48 catch (const std::out_of_range &)
49 {
50 throw std::invalid_argument(name);
51 }
52}
53} // namespace framework
54} // namespace test
55} // namespace arm_compute

Callers 1

Printers.hFile · 0.85

Calls 1

tolowerFunction · 0.50

Tested by

no test coverage detected