Home / Function/ testCyclicArrays() — netty Function Reference

testCyclicArrays() — netty Function Reference

Architecture documentation for the testCyclicArrays() function in MessageFormatterTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b9a92786_2b3b_bf07_7c30_576efb560357["testCyclicArrays()"]
  61b49498_5128_d2ab_e17e_0c346b46695a["MessageFormatterTest"]
  b9a92786_2b3b_bf07_7c30_576efb560357 -->|defined in| 61b49498_5128_d2ab_e17e_0c346b46695a
  style b9a92786_2b3b_bf07_7c30_576efb560357 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java lines 268–281

    @Test
    public void testCyclicArrays() {
        Object[] cyclicA = new Object[1];
        cyclicA[0] = cyclicA;
        assertEquals("[[...]]", MessageFormatter.arrayFormat("{}", cyclicA).getMessage());

        Object[] a = new Object[2];
        a[0] = 1;
        Object[] c = { 3, a };
        Object[] b = { 2, c };
        a[1] = b;
        assertEquals("1[2, [3, [1, [...]]]]",
                     MessageFormatter.arrayFormat("{}{}", a).getMessage());
    }

Domain

Subdomains

Frequently Asked Questions

What does testCyclicArrays() do?
testCyclicArrays() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java.
Where is testCyclicArrays() defined?
testCyclicArrays() is defined in common/src/test/java/io/netty/util/internal/logging/MessageFormatterTest.java at line 268.

Analyze Your Own Codebase

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

Try Supermodel Free