Home / Function/ testNotLeak() — netty Function Reference

testNotLeak() — netty Function Reference

Architecture documentation for the testNotLeak() function in HttpPostRequestDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9265bd8e_8aa9_96d2_ab84_d779d70c452e["testNotLeak()"]
  d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"]
  9265bd8e_8aa9_96d2_ab84_d779d70c452e -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e
  style 9265bd8e_8aa9_96d2_ab84_d779d70c452e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 768–782

    @Test
    public void testNotLeak() {
        final FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/",
                Unpooled.copiedBuffer("a=1&=2&b=3", CharsetUtil.US_ASCII));
        try {
            assertThrows(HttpPostRequestDecoder.ErrorDataDecoderException.class, new Executable() {
                @Override
                public void execute() {
                    new HttpPostStandardRequestDecoder(request).destroy();
                }
            });
        } finally {
            assertTrue(request.release());
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free