shouldDecodeTwoSimpleStrings() — netty Function Reference
Architecture documentation for the shouldDecodeTwoSimpleStrings() function in RedisDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 23cf20f8_8cc2_9838_51cb_87d0fd63fb54["shouldDecodeTwoSimpleStrings()"] 5bef0d49_45a1_6e64_a046_06825037f689["RedisDecoderTest"] 23cf20f8_8cc2_9838_51cb_87d0fd63fb54 -->|defined in| 5bef0d49_45a1_6e64_a046_06825037f689 style 23cf20f8_8cc2_9838_51cb_87d0fd63fb54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 123–138
@Test
public void shouldDecodeTwoSimpleStrings() {
assertFalse(channel.writeInbound(byteBufOf("+")));
assertFalse(channel.writeInbound(byteBufOf("O")));
assertFalse(channel.writeInbound(byteBufOf("K")));
assertTrue(channel.writeInbound(byteBufOf("\r\n+SEC")));
assertTrue(channel.writeInbound(byteBufOf("OND\r\n")));
SimpleStringRedisMessage msg1 = channel.readInbound();
assertEquals("OK", msg1.content());
ReferenceCountUtil.release(msg1);
SimpleStringRedisMessage msg2 = channel.readInbound();
assertEquals("SECOND", msg2.content());
ReferenceCountUtil.release(msg2);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldDecodeTwoSimpleStrings() do?
shouldDecodeTwoSimpleStrings() is a function in the netty codebase, defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java.
Where is shouldDecodeTwoSimpleStrings() defined?
shouldDecodeTwoSimpleStrings() is defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java at line 123.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free