Home / Function/ shouldConsolidationInSequence() — netty Function Reference

shouldConsolidationInSequence() — netty Function Reference

Architecture documentation for the shouldConsolidationInSequence() function in ConsolidationTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  10a72185_e7eb_4aea_41c1_19ba68465c06["shouldConsolidationInSequence()"]
  d0e72a7a_1993_09a5_23e8_111048899c97["ConsolidationTest"]
  10a72185_e7eb_4aea_41c1_19ba68465c06 -->|defined in| d0e72a7a_1993_09a5_23e8_111048899c97
  style 10a72185_e7eb_4aea_41c1_19ba68465c06 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ConsolidationTest.java lines 43–76

    @Test
    public void shouldConsolidationInSequence() {
        ByteBuf currentBuffer = wrappedBuffer(wrappedBuffer("a".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("=".getBytes(CharsetUtil.US_ASCII)));
        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("1".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("&".getBytes(CharsetUtil.US_ASCII)));

        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("b".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("=".getBytes(CharsetUtil.US_ASCII)));
        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("2".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("&".getBytes(CharsetUtil.US_ASCII)));

        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("c".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("=".getBytes(CharsetUtil.US_ASCII)));
        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("3".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("&".getBytes(CharsetUtil.US_ASCII)));

        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("d".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("=".getBytes(CharsetUtil.US_ASCII)));
        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("4".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("&".getBytes(CharsetUtil.US_ASCII)));

        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("e".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("=".getBytes(CharsetUtil.US_ASCII)));
        currentBuffer = wrappedBuffer(currentBuffer, wrappedBuffer("5".getBytes(CharsetUtil.US_ASCII)),
                wrappedBuffer("&".getBytes(CharsetUtil.US_ASCII)));

        ByteBuf copy = currentBuffer.copy();
        String s = copy.toString(CharsetUtil.US_ASCII);
        assertEquals("a=1&b=2&c=3&d=4&e=5&", s);

        currentBuffer.release();
        copy.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldConsolidationInSequence() do?
shouldConsolidationInSequence() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ConsolidationTest.java.
Where is shouldConsolidationInSequence() defined?
shouldConsolidationInSequence() is defined in buffer/src/test/java/io/netty/buffer/ConsolidationTest.java at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free