MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/coding/coding_tests/zlib_test.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46UNIT_TEST(ZLib_Smoke)
47{
48 Deflate const deflate(Deflate::Format::ZLib, Deflate::Level::BestCompression);
49 Inflate const inflate(Inflate::Format::ZLib);
50
51 {
52 string s;
53 TEST(!deflate(nullptr /* data */, 0 /* size */, back_inserter(s) /* out */), ());
54 TEST(!deflate(nullptr /* data */, 4 /* size */, back_inserter(s) /* out */), ());
55 TEST(!inflate(nullptr /* data */, 0 /* size */, back_inserter(s) /* out */), ());
56 TEST(!inflate(nullptr /* data */, 4 /* size */, back_inserter(s) /* out */), ());
57 }
58
59 TestDeflateInflate("");
60 TestDeflateInflate("Hello, World!");
61}
62
63UNIT_TEST(ZLib_Large)
64{

Callers

nothing calls this directly

Calls 3

TESTFunction · 0.85
TestDeflateInflateFunction · 0.85
to_stringFunction · 0.85

Tested by

no test coverage detected