Home / Function/ testTextWithLen() — netty Function Reference

testTextWithLen() — netty Function Reference

Architecture documentation for the testTextWithLen() function in WebSocket08EncoderDecoderTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  eb12ef0f_e293_b4ee_ce25_85a0867ad801["testTextWithLen()"]
  1641b287_2aaf_ce3b_c2c6_654ccc82886d["WebSocket08EncoderDecoderTest"]
  eb12ef0f_e293_b4ee_ce25_85a0867ad801 -->|defined in| 1641b287_2aaf_ce3b_c2c6_654ccc82886d
  2ef26fb3_9ddb_2c34_88fb_726150d7f587["executeTests()"]
  2ef26fb3_9ddb_2c34_88fb_726150d7f587 -->|calls| eb12ef0f_e293_b4ee_ce25_85a0867ad801
  769a32ef_247a_a420_e4eb_c20e3eecc81e["transfer()"]
  eb12ef0f_e293_b4ee_ce25_85a0867ad801 -->|calls| 769a32ef_247a_a420_e4eb_c20e3eecc81e
  style eb12ef0f_e293_b4ee_ce25_85a0867ad801 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java lines 178–190

    private void testTextWithLen(EmbeddedChannel outChannel, EmbeddedChannel inChannel, int testDataLength) {
        String testStr = strTestData.substring(0, testDataLength);
        outChannel.writeOutbound(new TextWebSocketFrame(testStr));

        transfer(outChannel, inChannel);

        Object decoded = inChannel.readInbound();
        assertNotNull(decoded);
        assertTrue(decoded instanceof TextWebSocketFrame);
        TextWebSocketFrame txt = (TextWebSocketFrame) decoded;
        assertEquals(txt.text(), testStr);
        txt.release();
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does testTextWithLen() do?
testTextWithLen() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java.
Where is testTextWithLen() defined?
testTextWithLen() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java at line 178.
What does testTextWithLen() call?
testTextWithLen() calls 1 function(s): transfer.
What calls testTextWithLen()?
testTextWithLen() is called by 1 function(s): executeTests.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free