MCPcopy Index your code
hub / github.com/google/brotli / run

Method run

java/org/brotli/wrapper/dec/DecoderTest.java:60–76  ·  view source on GitHub ↗
(String entryName)

Source from the content-addressed store, hash-verified

58 }
59
60 private static void run(String entryName) throws Throwable {
61 InputStream bundle = getBundle();
62 byte[] compressed;
63 try {
64 compressed = BundleHelper.readEntry(bundle, entryName);
65 } finally {
66 bundle.close();
67 }
68 if (compressed == null) {
69 throw new RuntimeException("Can't read bundle entry: " + entryName);
70 }
71
72 byte[] decompressed = Decoder.decompress(compressed);
73
74 long crc = BundleHelper.fingerprintStream(new ByteArrayInputStream(decompressed));
75 assertEquals(BundleHelper.getExpectedFingerprint(entryName), crc);
76 }
77}

Callers 1

runTestMethod · 0.95

Calls 6

getBundleMethod · 0.95
readEntryMethod · 0.95
decompressMethod · 0.95
fingerprintStreamMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected