Home / Function/ testUnpackingCausesDecodeFail() — netty Function Reference

testUnpackingCausesDecodeFail() — netty Function Reference

Architecture documentation for the testUnpackingCausesDecodeFail() function in Socks5InitialRequestDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  71d93252_d023_e600_4d50_bbd27664a4e1["testUnpackingCausesDecodeFail()"]
  9bd3e427_b676_6b21_c4db_f8e8d9cfc10e["Socks5InitialRequestDecoderTest"]
  71d93252_d023_e600_4d50_bbd27664a4e1 -->|defined in| 9bd3e427_b676_6b21_c4db_f8e8d9cfc10e
  style 71d93252_d023_e600_4d50_bbd27664a4e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java lines 28–39

    @Test
    public void testUnpackingCausesDecodeFail() {
        EmbeddedChannel e = new EmbeddedChannel(new Socks5InitialRequestDecoder());
        assertFalse(e.writeInbound(Unpooled.wrappedBuffer(new byte[]{5, 2, 0})));
        assertTrue(e.writeInbound(Unpooled.wrappedBuffer(new byte[]{1})));
        Object o = e.readInbound();

        assertTrue(o instanceof DefaultSocks5InitialRequest);
        DefaultSocks5InitialRequest req = (DefaultSocks5InitialRequest) o;
        assertSame(req.decoderResult(), DecoderResult.SUCCESS);
        assertFalse(e.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testUnpackingCausesDecodeFail() do?
testUnpackingCausesDecodeFail() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java.
Where is testUnpackingCausesDecodeFail() defined?
testUnpackingCausesDecodeFail() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free