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

Method containerActionToFromString

test/testlibrary.cpp:1047–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045 }
1046
1047 void containerActionToFromString() const {
1048 for (uint16_t i = 0; i < static_cast<uint16_t>(Library::Container::Action::NO_ACTION); ++i) {
1049 const auto a = static_cast<Library::Container::Action>(i);
1050 const std::string& s = Library::Container::toString(a);
1051 ASSERT_EQUALS(i, static_cast<uint16_t>(Library::Container::actionFrom(s)));
1052 }
1053 }
1054
1055 void containerYieldToFromString() const {
1056 for (uint16_t i = 0; i < static_cast<uint16_t>(Library::Container::Yield::NO_YIELD); ++i) {

Callers

nothing calls this directly

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected