testNonZeroReaderIndex() — netty Function Reference
Architecture documentation for the testNonZeroReaderIndex() function in CloseWebSocketFrameTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3a18f8b5_9109_8374_bceb_b59dcedf901f["testNonZeroReaderIndex()"] 2e40898a_0f96_6a9c_3a33_ff2c3c4a8ef0["CloseWebSocketFrameTest"] 3a18f8b5_9109_8374_bceb_b59dcedf901f -->|defined in| 2e40898a_0f96_6a9c_3a33_ff2c3c4a8ef0 721cb817_3b2c_38c4_a169_5b8ecfa0f15f["doTestValidCode()"] 3a18f8b5_9109_8374_bceb_b59dcedf901f -->|calls| 721cb817_3b2c_38c4_a169_5b8ecfa0f15f style 3a18f8b5_9109_8374_bceb_b59dcedf901f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java lines 74–81
@Test
void testNonZeroReaderIndex() {
ByteBuf buffer = Unpooled.buffer().writeZero(1);
buffer.writeShort(WebSocketCloseStatus.NORMAL_CLOSURE.code())
.writeCharSequence(WebSocketCloseStatus.NORMAL_CLOSURE.reasonText(), CharsetUtil.US_ASCII);
doTestValidCode(new CloseWebSocketFrame(true, 0, buffer.skipBytes(1)),
WebSocketCloseStatus.NORMAL_CLOSURE.code(), WebSocketCloseStatus.NORMAL_CLOSURE.reasonText());
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does testNonZeroReaderIndex() do?
testNonZeroReaderIndex() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java.
Where is testNonZeroReaderIndex() defined?
testNonZeroReaderIndex() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java at line 74.
What does testNonZeroReaderIndex() call?
testNonZeroReaderIndex() calls 1 function(s): doTestValidCode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free