Home / Function/ testMaxCapacity() — netty Function Reference

testMaxCapacity() — netty Function Reference

Architecture documentation for the testMaxCapacity() function in RecyclerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  60b90f71_7fad_ffbb_3cbf_026c2aaef53c["testMaxCapacity()"]
  46ac14b1_2382_5afa_98f3_803182070b38["RecyclerTest"]
  60b90f71_7fad_ffbb_3cbf_026c2aaef53c -->|defined in| 46ac14b1_2382_5afa_98f3_803182070b38
  87dca999_f804_a974_e326_fd8f527f1246["newRecycler()"]
  60b90f71_7fad_ffbb_3cbf_026c2aaef53c -->|calls| 87dca999_f804_a974_e326_fd8f527f1246
  43ab40f6_52e7_0fe9_a79f_220021939268["recycle()"]
  60b90f71_7fad_ffbb_3cbf_026c2aaef53c -->|calls| 43ab40f6_52e7_0fe9_a79f_220021939268
  style 60b90f71_7fad_ffbb_3cbf_026c2aaef53c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/RecyclerTest.java lines 427–435

    @ParameterizedTest
    @MethodSource("ownerTypeAndUnguarded")
    public void testMaxCapacity(OwnerType ownerType, boolean unguarded) {
        testMaxCapacity(ownerType, unguarded, 300);
        Random rand = new Random();
        for (int i = 0; i < 50; i++) {
            testMaxCapacity(ownerType, unguarded, rand.nextInt(1000) + 256); // 256 - 1256
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testMaxCapacity() do?
testMaxCapacity() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/RecyclerTest.java.
Where is testMaxCapacity() defined?
testMaxCapacity() is defined in common/src/test/java/io/netty/util/RecyclerTest.java at line 427.
What does testMaxCapacity() call?
testMaxCapacity() calls 2 function(s): newRecycler, recycle.

Analyze Your Own Codebase

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

Try Supermodel Free