Home / Function/ testMultipleNames() — netty Function Reference

testMultipleNames() — netty Function Reference

Architecture documentation for the testMultipleNames() function in SpdyHeaderBlockRawDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f3e88678_aa29_fcef_f3b4_aa291a8bd5c6["testMultipleNames()"]
  9d24b120_0e9f_df39_05af_436eac53cd12["SpdyHeaderBlockRawDecoderTest"]
  f3e88678_aa29_fcef_f3b4_aa291a8bd5c6 -->|defined in| 9d24b120_0e9f_df39_05af_436eac53cd12
  style f3e88678_aa29_fcef_f3b4_aa291a8bd5c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java lines 378–399

    @Test
    public void testMultipleNames() throws Exception {
        ByteBuf headerBlock = Unpooled.buffer(38);
        headerBlock.writeInt(2);
        headerBlock.writeInt(4);
        headerBlock.writeBytes(nameBytes);
        headerBlock.writeInt(5);
        headerBlock.writeBytes(valueBytes);
        headerBlock.writeInt(4);
        headerBlock.writeBytes(nameBytes);
        headerBlock.writeInt(5);
        headerBlock.writeBytes(valueBytes);
        decoder.decode(ByteBufAllocator.DEFAULT, headerBlock, frame);

        assertFalse(headerBlock.isReadable());
        assertTrue(frame.isInvalid());
        assertEquals(1, frame.headers().names().size());
        assertTrue(frame.headers().contains(name));
        assertEquals(1, frame.headers().getAll(name).size());
        assertEquals(value, frame.headers().get(name));
        headerBlock.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testMultipleNames() do?
testMultipleNames() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java.
Where is testMultipleNames() defined?
testMultipleNames() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java at line 378.

Analyze Your Own Codebase

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

Try Supermodel Free