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

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

Calls

no outgoing calls

Tested by

no test coverage detected