Home / Function/ initTestData() — netty Function Reference

initTestData() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  56256270_4a10_737f_73a0_6c3b146a6140["initTestData()"]
  1641b287_2aaf_ce3b_c2c6_654ccc82886d["WebSocket08EncoderDecoderTest"]
  56256270_4a10_737f_73a0_6c3b146a6140 -->|defined in| 1641b287_2aaf_ce3b_c2c6_654ccc82886d
  1a0bc198_3cbd_937a_5778_4a6c5c16cecf["testWebSocketProtocolViolation()"]
  1a0bc198_3cbd_937a_5778_4a6c5c16cecf -->|calls| 56256270_4a10_737f_73a0_6c3b146a6140
  9bf50fab_dea9_9f14_30be_52f2e34e23f3["testWebSocketEncodingAndDecoding()"]
  9bf50fab_dea9_9f14_30be_52f2e34e23f3 -->|calls| 56256270_4a10_737f_73a0_6c3b146a6140
  style 56256270_4a10_737f_73a0_6c3b146a6140 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java lines 41–59

    private void initTestData() {
        binTestData = Unpooled.buffer(MAX_TESTDATA_LENGTH);
        byte j = 0;
        for (int i = 0; i < MAX_TESTDATA_LENGTH; i++) {
            binTestData.array()[i] = j;
            j++;
        }

        StringBuilder s = new StringBuilder();
        char c = 'A';
        for (int i = 0; i < MAX_TESTDATA_LENGTH; i++) {
            s.append(c);
            c++;
            if (c == 'Z') {
                c = 'A';
            }
        }
        strTestData = s.toString();
    }

Domain

Subdomains

Frequently Asked Questions

What does initTestData() do?
initTestData() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java.
Where is initTestData() defined?
initTestData() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java at line 41.
What calls initTestData()?
initTestData() is called by 2 function(s): testWebSocketEncodingAndDecoding, testWebSocketProtocolViolation.

Analyze Your Own Codebase

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

Try Supermodel Free