MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST

Function TEST

valdi/test/runtime/ZStdUtils_tests.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37TEST(ZStdUtils, isZstdFileReturnsFalseForShortInput) {
38 std::array<Byte, 3> data = {0x28, 0xB5, 0x2F};
39 ASSERT_FALSE(ZStdUtils::isZstdFile(data.data(), data.size()));
40}
41
42TEST(ZStdUtils, isZstdFileReturnsTrueForZstdMagic) {
43 std::vector<Byte> payload(64, 0x42);

Callers

nothing calls this directly

Calls 15

compressDataFunction · 0.85
ZSTD_createCCtxFunction · 0.85
ZSTD_CCtx_setParameterFunction · 0.85
ZSTD_compressBoundFunction · 0.85
ZSTD_compress2Function · 0.85
ZSTD_isErrorFunction · 0.85
ZSTD_freeCCtxFunction · 0.85
ZSTD_getFrameContentSizeFunction · 0.85
compressWithContentSizeFunction · 0.85
descriptionMethod · 0.80
statClass · 0.70
valueMethod · 0.65

Tested by

no test coverage detected