MCPcopy Create free account
hub / github.com/apache/orc / testNoOverflow

Method testNoOverflow

java/core/src/test/org/apache/orc/impl/TestZlib.java:40–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38public class TestZlib implements TestConf {
39
40 @Test
41 public void testNoOverflow() throws Exception {
42 ByteBuffer in = ByteBuffer.allocate(10);
43 ByteBuffer out = ByteBuffer.allocate(10);
44 in.put(new byte[]{1,2,3,4,5,6,7,10});
45 in.flip();
46 CompressionCodec codec = new ZlibCodec();
47 assertFalse(codec.compress(in, out, null,
48 codec.getDefaultOptions()));
49 }
50
51 @Test
52 public void testCorrupt() throws Exception {

Callers

nothing calls this directly

Calls 4

compressMethod · 0.95
getDefaultOptionsMethod · 0.95
putMethod · 0.80
flipMethod · 0.80

Tested by

no test coverage detected