Home / Function/ shouldDecodeError() — netty Function Reference

shouldDecodeError() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 140–153

    @Test
    public void shouldDecodeError() {
        String content = "ERROR sample message";
        assertFalse(channel.writeInbound(byteBufOf("-")));
        assertFalse(channel.writeInbound(byteBufOf(content)));
        assertFalse(channel.writeInbound(byteBufOf("\r")));
        assertTrue(channel.writeInbound(byteBufOf("\n")));

        ErrorRedisMessage msg = channel.readInbound();

        assertEquals(content, msg.content());

        ReferenceCountUtil.release(msg);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free