Home / Function/ shouldDecodeInlineCommand() — netty Function Reference

shouldDecodeInlineCommand() — netty Function Reference

Architecture documentation for the shouldDecodeInlineCommand() function in RedisDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9007ecba_85c4_2206_600e_bb387dbe580b["shouldDecodeInlineCommand()"]
  5bef0d49_45a1_6e64_a046_06825037f689["RedisDecoderTest"]
  9007ecba_85c4_2206_600e_bb387dbe580b -->|defined in| 5bef0d49_45a1_6e64_a046_06825037f689
  style 9007ecba_85c4_2206_600e_bb387dbe580b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 92–107

    @Test
    public void shouldDecodeInlineCommand() {
        channel = newChannel(true);

        assertFalse(channel.writeInbound(byteBufOf("P")));
        assertFalse(channel.writeInbound(byteBufOf("I")));
        assertFalse(channel.writeInbound(byteBufOf("N")));
        assertFalse(channel.writeInbound(byteBufOf("G")));
        assertTrue(channel.writeInbound(byteBufOf("\r\n")));

        InlineCommandRedisMessage msg = channel.readInbound();

        assertEquals("PING", msg.content());

        ReferenceCountUtil.release(msg);
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldDecodeInlineCommand() do?
shouldDecodeInlineCommand() is a function in the netty codebase, defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java.
Where is shouldDecodeInlineCommand() defined?
shouldDecodeInlineCommand() is defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java at line 92.

Analyze Your Own Codebase

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

Try Supermodel Free