testBinaryDecompression() — netty Function Reference
Architecture documentation for the testBinaryDecompression() function in HttpContentDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 14854d12_c5f6_6934_ec39_441b8a359663["testBinaryDecompression()"] ea4ec426_b689_ab52_a554_7959aed6c709["HttpContentDecoderTest"] 14854d12_c5f6_6934_ec39_441b8a359663 -->|defined in| ea4ec426_b689_ab52_a554_7959aed6c709 990eb8f7_f8c4_a14d_0b4f_64b2e9693297["gzDecompress()"] 14854d12_c5f6_6934_ec39_441b8a359663 -->|calls| 990eb8f7_f8c4_a14d_0b4f_64b2e9693297 5caa38f2_c5ef_f0aa_7137_fa3175b891df["gzCompress()"] 14854d12_c5f6_6934_ec39_441b8a359663 -->|calls| 5caa38f2_c5ef_f0aa_7137_fa3175b891df style 14854d12_c5f6_6934_ec39_441b8a359663 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java lines 73–85
@Test
public void testBinaryDecompression() throws Exception {
// baseline test: zlib library and test helpers work correctly.
byte[] helloWorld = gzDecompress(GZ_HELLO_WORLD);
assertEquals(HELLO_WORLD.length(), helloWorld.length);
assertEquals(HELLO_WORLD, new String(helloWorld, CharsetUtil.US_ASCII));
String fullCycleTest = "full cycle test";
byte[] compressed = gzCompress(fullCycleTest.getBytes(CharsetUtil.US_ASCII));
byte[] decompressed = gzDecompress(compressed);
assertEquals(decompressed.length, fullCycleTest.length());
assertEquals(fullCycleTest, new String(decompressed, CharsetUtil.US_ASCII));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testBinaryDecompression() do?
testBinaryDecompression() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java.
Where is testBinaryDecompression() defined?
testBinaryDecompression() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java at line 73.
What does testBinaryDecompression() call?
testBinaryDecompression() calls 2 function(s): gzCompress, gzDecompress.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free