MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / containerYieldToFromString

Method containerYieldToFromString

test/testlibrary.cpp:1055–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053 }
1054
1055 void containerYieldToFromString() const {
1056 for (uint16_t i = 0; i < static_cast<uint16_t>(Library::Container::Yield::NO_YIELD); ++i) {
1057 const auto y = static_cast<Library::Container::Yield>(i);
1058 const std::string& s = Library::Container::toString(y);
1059 ASSERT_EQUALS(i, static_cast<uint16_t>(Library::Container::yieldFrom(s)));
1060 }
1061 }
1062
1063#define LOADLIB_ERROR_INVALID_RANGE(valid) LOADLIBERROR("<?xml version=\"1.0\"?>\n" \
1064 "<def>\n" \

Callers

nothing calls this directly

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected