Home / Function/ shouldDecodeNullBulkString() — netty Function Reference

shouldDecodeNullBulkString() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 205–225

    @Test
    public void shouldDecodeNullBulkString() {
        assertFalse(channel.writeInbound(byteBufOf("$")));
        assertFalse(channel.writeInbound(byteBufOf(Integer.toString(-1))));
        assertTrue(channel.writeInbound(byteBufOf("\r\n")));

        assertTrue(channel.writeInbound(byteBufOf("$")));
        assertTrue(channel.writeInbound(byteBufOf(Integer.toString(-1))));
        assertTrue(channel.writeInbound(byteBufOf("\r\n")));

        FullBulkStringRedisMessage msg1 = channel.readInbound();
        assertTrue(msg1.isNull());
        ReferenceCountUtil.release(msg1);

        FullBulkStringRedisMessage msg2 = channel.readInbound();
        assertTrue(msg2.isNull());
        ReferenceCountUtil.release(msg2);

        FullBulkStringRedisMessage msg3 = channel.readInbound();
        assertNull(msg3);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free