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

Function decompressForTest

Tests/Libraries/Http/HttpAsyncClientTest.cpp:183–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 SC_TRY(timeout.start(loop, duration));
182 loop.excludeFromActiveCount(timeout);
183 return SC::Result(true);
184 }
185};
186
187static bool compressionTestsAvailable(SC::TestReport& report)
188{
189 (void)(report);
190 SC::ZLibAPI zlib;
191 if (not zlib.load())
192 {
193 return false;
194 }
195 zlib.unload();
196 return true;
197}
198
199static SC::Result decompressForTest(SC::ZLibStream::Algorithm algorithm, SC::Span<const char> input,
200 SC::Span<char>& decoded)
201{
202 SC::ZLibStream stream;

Callers 1

onEndMethod · 0.85

Calls 5

ResultClass · 0.50
initMethod · 0.45
processMethod · 0.45
finalizeMethod · 0.45
sizeInBytesMethod · 0.45

Tested by

no test coverage detected