MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / mapPort

Method mapPort

Libraries/Testing/Testing.cpp:852–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850int SC::TestReport::getTestReturnCode() const { return startupFailure || numTestsFailed > 0 ? -1 : 0; }
851
852uint16_t SC::TestReport::mapPort(uint16_t basePort) const
853{
854 const uint32_t mappedPort = static_cast<uint32_t>(basePort) + static_cast<uint32_t>(portOffset);
855 SC_TESTING_ASSERT_RELEASE(mappedPort <= 65535);
856 return static_cast<uint16_t>(mappedPort <= 65535 ? mappedPort : basePort);
857}
858
859bool SC::TestReport::isTestExplicitlySelected(StringSpan testName) const
860{

Calls

no outgoing calls

Tested by

no test coverage detected