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

Function resultMessageEquals

Tests/Libraries/Http/HttpHeadersTest.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace SC
7{
8static bool resultMessageEquals(const Result& result, StringSpan expected)
9{
10 return not result and StringSpan::fromNullTerminated(result.message, StringEncoding::Ascii) == expected;
11}
12
13struct HttpHeadersTest : public TestCase
14{

Callers 3

authorizationHelpersMethod · 0.70
setCookieHelpersMethod · 0.70
headerBuildersMethod · 0.70

Calls 1

fromNullTerminatedFunction · 0.85

Tested by

no test coverage detected