testWrapShortFromShortArray() — netty Function Reference
Architecture documentation for the testWrapShortFromShortArray() function in UnpooledTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 350f872a_f67a_ba92_8713_590f3eef1f7d["testWrapShortFromShortArray()"] 57588d83_f329_0d85_cfc5_eea9b8d43e8f["UnpooledTest"] 350f872a_f67a_ba92_8713_590f3eef1f7d -->|defined in| 57588d83_f329_0d85_cfc5_eea9b8d43e8f style 350f872a_f67a_ba92_8713_590f3eef1f7d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 528–544
@Test
public void testWrapShortFromShortArray() {
ByteBuf buffer = copyShort(new short[]{1, 4});
assertEquals(4, buffer.capacity());
assertEquals(1, buffer.readShort());
assertEquals(4, buffer.readShort());
assertFalse(buffer.isReadable());
buffer.release();
buffer = copyShort((short[]) null);
assertEquals(0, buffer.capacity());
buffer.release();
buffer = copyShort(new short[] {});
assertEquals(0, buffer.capacity());
buffer.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWrapShortFromShortArray() do?
testWrapShortFromShortArray() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java.
Where is testWrapShortFromShortArray() defined?
testWrapShortFromShortArray() is defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java at line 528.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free