MCPcopy
hub / github.com/google/brotli / checkDecodeResource

Method checkDecodeResource

java/org/brotli/dec/DecodeTest.java:53–60  ·  view source on GitHub ↗
(String expected, String compressed)

Source from the content-addressed store, hash-verified

51 }
52
53 private void checkDecodeResource(String expected, String compressed) throws IOException {
54 byte[] expectedBytes = readUniBytes(expected);
55 byte[] compressedBytes = readUniBytes(compressed);
56 byte[] actual = decompress(compressedBytes, false);
57 assertArrayEquals(expectedBytes, actual);
58 byte[] actualByByte = decompress(compressedBytes, true);
59 assertArrayEquals(expectedBytes, actualByByte);
60 }
61
62 @Test
63 public void testEmpty() throws IOException {

Callers 7

testEmptyMethod · 0.95
testXMethod · 0.95
testX10Y10Method · 0.95
testX64Method · 0.95
testUkkonooaMethod · 0.95
testMonkeyMethod · 0.95
testFoxMethod · 0.95

Calls 2

decompressMethod · 0.95
readUniBytesMethod · 0.80

Tested by

no test coverage detected