testBinaryWithLen() — netty Function Reference
Architecture documentation for the testBinaryWithLen() function in WebSocket08EncoderDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0922f899_084a_8fad_20de_9e770362a721["testBinaryWithLen()"] 1641b287_2aaf_ce3b_c2c6_654ccc82886d["WebSocket08EncoderDecoderTest"] 0922f899_084a_8fad_20de_9e770362a721 -->|defined in| 1641b287_2aaf_ce3b_c2c6_654ccc82886d 82de8b8e_7786_8b3a_c2e0_97889a7caa9d["executeProtocolViolationTest()"] 82de8b8e_7786_8b3a_c2e0_97889a7caa9d -->|calls| 0922f899_084a_8fad_20de_9e770362a721 2ef26fb3_9ddb_2c34_88fb_726150d7f587["executeTests()"] 2ef26fb3_9ddb_2c34_88fb_726150d7f587 -->|calls| 0922f899_084a_8fad_20de_9e770362a721 769a32ef_247a_a420_e4eb_c20e3eecc81e["transfer()"] 0922f899_084a_8fad_20de_9e770362a721 -->|calls| 769a32ef_247a_a420_e4eb_c20e3eecc81e style 0922f899_084a_8fad_20de_9e770362a721 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java lines 192–209
private void testBinaryWithLen(EmbeddedChannel outChannel, EmbeddedChannel inChannel, int testDataLength) {
binTestData.retain(); // need to retain for sending and still keeping it
binTestData.setIndex(0, testDataLength); // Send only len bytes
outChannel.writeOutbound(new BinaryWebSocketFrame(binTestData));
transfer(outChannel, inChannel);
Object decoded = inChannel.readInbound();
assertNotNull(decoded);
assertTrue(decoded instanceof BinaryWebSocketFrame);
BinaryWebSocketFrame binFrame = (BinaryWebSocketFrame) decoded;
int readable = binFrame.content().readableBytes();
assertEquals(readable, testDataLength);
for (int i = 0; i < testDataLength; i++) {
assertEquals(binTestData.getByte(i), binFrame.content().getByte(i));
}
binFrame.release();
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does testBinaryWithLen() do?
testBinaryWithLen() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java.
Where is testBinaryWithLen() defined?
testBinaryWithLen() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java at line 192.
What does testBinaryWithLen() call?
testBinaryWithLen() calls 1 function(s): transfer.
What calls testBinaryWithLen()?
testBinaryWithLen() is called by 2 function(s): executeProtocolViolationTest, executeTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free