Home / Function/ testCalculateOutNetBufSizeOverflow() — netty Function Reference

testCalculateOutNetBufSizeOverflow() — netty Function Reference

Architecture documentation for the testCalculateOutNetBufSizeOverflow() function in OpenSslEngineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ff8e98de_dc69_3c05_c69c_d5ba6e4839f1["testCalculateOutNetBufSizeOverflow()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"]
  ff8e98de_dc69_3c05_c69c_d5ba6e4839f1 -->|defined in| 08957e63_66e1_e2b4_c8aa_4f617c598a7d
  style ff8e98de_dc69_3c05_c69c_d5ba6e4839f1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 440–457

    @MethodSource("newTestParams")
    @ParameterizedTest
    public void testCalculateOutNetBufSizeOverflow(SSLEngineTestParam param) throws SSLException {
        clientSslCtx = wrapContext(param, SslContextBuilder.forClient()
                                        .trustManager(InsecureTrustManagerFactory.INSTANCE)
                                        .sslProvider(sslClientProvider())
                                        .protocols(param.protocols())
                                        .ciphers(param.ciphers())
                                        .build());
        SSLEngine clientEngine = null;
        try {
            clientEngine = clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT);
            int value = ((ReferenceCountedOpenSslEngine) clientEngine).calculateOutNetBufSize(MAX_VALUE, 1);
            assertTrue(value > 0);
        } finally {
            cleanupClientSslEngine(clientEngine);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testCalculateOutNetBufSizeOverflow() do?
testCalculateOutNetBufSizeOverflow() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is testCalculateOutNetBufSizeOverflow() defined?
testCalculateOutNetBufSizeOverflow() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 440.

Analyze Your Own Codebase

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

Try Supermodel Free