testSmallAmountOfDataIsUncompressed() — netty Function Reference
Architecture documentation for the testSmallAmountOfDataIsUncompressed() function in SnappyFrameEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 78c8d087_2d78_7bf2_2eee_ebb1af553260["testSmallAmountOfDataIsUncompressed()"] 7bf4ca4f_ca32_181e_5b9a_f9630200b493["SnappyFrameEncoderTest"] 78c8d087_2d78_7bf2_2eee_ebb1af553260 -->|defined in| 7bf4ca4f_ca32_181e_5b9a_f9630200b493 style 78c8d087_2d78_7bf2_2eee_ebb1af553260 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java lines 35–52
@Test
public void testSmallAmountOfDataIsUncompressed() throws Exception {
ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
'n', 'e', 't', 't', 'y'
});
channel.writeOutbound(in);
assertTrue(channel.finish());
ByteBuf expected = Unpooled.wrappedBuffer(new byte[] {
(byte) 0xff, 0x06, 0x00, 0x00, 0x73, 0x4e, 0x61, 0x50, 0x70, 0x59,
0x01, 0x09, 0x00, 0x00, 0x6f, -0x68, 0x2e, -0x47, 'n', 'e', 't', 't', 'y'
});
ByteBuf actual = channel.readOutbound();
assertEquals(expected, actual);
expected.release();
actual.release();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testSmallAmountOfDataIsUncompressed() do?
testSmallAmountOfDataIsUncompressed() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java.
Where is testSmallAmountOfDataIsUncompressed() defined?
testSmallAmountOfDataIsUncompressed() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyFrameEncoderTest.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free