Home / Function/ testWrappedReturnNull() — netty Function Reference

testWrappedReturnNull() — netty Function Reference

Architecture documentation for the testWrappedReturnNull() function in HttpChunkedInputTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  40558471_f936_ca56_0a63_4bd3b99a1969["testWrappedReturnNull()"]
  b24236c6_8abc_d8c0_7070_21686bed749d["HttpChunkedInputTest"]
  40558471_f936_ca56_0a63_4bd3b99a1969 -->|defined in| b24236c6_8abc_d8c0_7070_21686bed749d
  style 40558471_f936_ca56_0a63_4bd3b99a1969 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpChunkedInputTest.java lines 83–117

    @Test
    public void testWrappedReturnNull() throws Exception {
        HttpChunkedInput input = new HttpChunkedInput(new ChunkedInput<ByteBuf>() {
            @Override
            public boolean isEndOfInput() throws Exception {
                return false;
            }

            @Override
            public void close() throws Exception {
                // NOOP
            }

            @Override
            public ByteBuf readChunk(ChannelHandlerContext ctx) throws Exception {
                return null;
            }

            @Override
            public ByteBuf readChunk(ByteBufAllocator allocator) throws Exception {
                return null;
            }

            @Override
            public long length() {
                return 0;
            }

            @Override
            public long progress() {
                return 0;
            }
        });
        assertNull(input.readChunk(ByteBufAllocator.DEFAULT));
    }

Domain

Subdomains

Frequently Asked Questions

What does testWrappedReturnNull() do?
testWrappedReturnNull() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpChunkedInputTest.java.
Where is testWrappedReturnNull() defined?
testWrappedReturnNull() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpChunkedInputTest.java at line 83.

Analyze Your Own Codebase

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

Try Supermodel Free