Home / Function/ testRegularDecode() — netty Function Reference

testRegularDecode() — netty Function Reference

Architecture documentation for the testRegularDecode() function in ProtobufVarint32LengthFieldPrependerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  56756ab4_e132_ddb6_e1f4_74f764d2baef["testRegularDecode()"]
  6eaee290_afed_8a50_d035_25ef3cea2e1f["ProtobufVarint32LengthFieldPrependerTest"]
  56756ab4_e132_ddb6_e1f4_74f764d2baef -->|defined in| 6eaee290_afed_8a50_d035_25ef3cea2e1f
  style 56756ab4_e132_ddb6_e1f4_74f764d2baef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrependerTest.java lines 183–201

    @Test
    public void testRegularDecode() {
        byte[] b = new byte[2048];
        for (int i = 2; i < 2048; i ++) {
            b[i] = 1;
        }
        b[0] = -2;
        b[1] = 15;
        assertTrue(ch.writeOutbound(wrappedBuffer(b, 2, b.length - 2)));

        ByteBuf expected = wrappedBuffer(b);
        ByteBuf actual = ch.readOutbound();

        assertEquals(expected, actual);
        assertFalse(ch.finish());

        expected.release();
        actual.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testRegularDecode() do?
testRegularDecode() is a function in the netty codebase, defined in codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrependerTest.java.
Where is testRegularDecode() defined?
testRegularDecode() is defined in codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrependerTest.java at line 183.

Analyze Your Own Codebase

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

Try Supermodel Free