Home / Function/ shouldDecodeRequestWithSimpleValue() — netty Function Reference

shouldDecodeRequestWithSimpleValue() — netty Function Reference

Architecture documentation for the shouldDecodeRequestWithSimpleValue() function in BinaryMemcacheDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1403dcd7_4d56_3241_d601_aaadfde13296["shouldDecodeRequestWithSimpleValue()"]
  842bad71_a9e0_a6bb_4ffc_95b572e61d71["BinaryMemcacheDecoderTest"]
  1403dcd7_4d56_3241_d601_aaadfde13296 -->|defined in| 842bad71_a9e0_a6bb_4ffc_95b572e61d71
  style 1403dcd7_4d56_3241_d601_aaadfde13296 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheDecoderTest.java lines 85–103

    @Test
    public void shouldDecodeRequestWithSimpleValue() {
        ByteBuf incoming = Unpooled.buffer();
        incoming.writeBytes(GET_REQUEST);
        channel.writeInbound(incoming);

        BinaryMemcacheRequest request = channel.readInbound();

        assertNotNull(request);
        assertNotNull(request.key());
        assertNull(request.extras());

        assertEquals((short) 3, request.keyLength());
        assertEquals((byte) 0, request.extrasLength());
        assertEquals(3, request.totalBodyLength());

        request.release();
        assertInstanceOf(LastMemcacheContent.class, channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldDecodeRequestWithSimpleValue() do?
shouldDecodeRequestWithSimpleValue() is a function in the netty codebase, defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheDecoderTest.java.
Where is shouldDecodeRequestWithSimpleValue() defined?
shouldDecodeRequestWithSimpleValue() is defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheDecoderTest.java at line 85.

Analyze Your Own Codebase

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

Try Supermodel Free