Home / Function/ shouldDecodeBulkString() — netty Function Reference

shouldDecodeBulkString() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 170–187

    @Test
    public void shouldDecodeBulkString() {
        String buf1 = "bulk\nst";
        String buf2 = "ring\ntest\n1234";
        byte[] content = bytesOf(buf1 + buf2);
        assertFalse(channel.writeInbound(byteBufOf("$")));
        assertFalse(channel.writeInbound(byteBufOf(Integer.toString(content.length))));
        assertFalse(channel.writeInbound(byteBufOf("\r\n")));
        assertFalse(channel.writeInbound(byteBufOf(buf1)));
        assertFalse(channel.writeInbound(byteBufOf(buf2)));
        assertTrue(channel.writeInbound(byteBufOf("\r\n")));

        FullBulkStringRedisMessage msg = channel.readInbound();

        assertArrayEquals(content, bytesOf(msg.content()));

        ReferenceCountUtil.release(msg);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free