MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / TEST

Function TEST

Libraries/snappy/snappy_unittest.cc:728–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728TEST(Snappy, SimpleTests) {
729 Verify("");
730 Verify("a");
731 Verify("ab");
732 Verify("abc");
733
734 Verify("aaaaaaa" + string(16, 'b') + string("aaaaa") + "abc");
735 Verify("aaaaaaa" + string(256, 'b') + string("aaaaa") + "abc");
736 Verify("aaaaaaa" + string(2047, 'b') + string("aaaaa") + "abc");
737 Verify("aaaaaaa" + string(65536, 'b') + string("aaaaa") + "abc");
738 Verify("abcaaaaaaa" + string(65536, 'b') + string("aaaaa") + "abc");
739}
740
741// Verify max blowup (lots of four-byte copies)
742TEST(Snappy, MaxBlowup) {

Callers

nothing calls this directly

Calls 15

VerifyFunction · 0.85
AppendLiteralFunction · 0.85
AppendCopyFunction · 0.85
RawUncompressToIOVecFunction · 0.85
CheckUncompressedLengthFunction · 0.85
RawUncompressFunction · 0.85
TestFindMatchLengthFunction · 0.85
FindMatchLengthFunction · 0.85
NextMethod · 0.80
UniformMethod · 0.80
OneInMethod · 0.80
SkewedMethod · 0.80

Tested by

no test coverage detected