shouldDecodeEmptyBulkString() — netty Function Reference
Architecture documentation for the shouldDecodeEmptyBulkString() function in RedisDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bb39c86e_0fb9_c718_6e97_9d54252b7bd9["shouldDecodeEmptyBulkString()"] 5bef0d49_45a1_6e64_a046_06825037f689["RedisDecoderTest"] bb39c86e_0fb9_c718_6e97_9d54252b7bd9 -->|defined in| 5bef0d49_45a1_6e64_a046_06825037f689 style bb39c86e_0fb9_c718_6e97_9d54252b7bd9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java lines 189–203
@Test
public void shouldDecodeEmptyBulkString() {
byte[] content = bytesOf("");
assertFalse(channel.writeInbound(byteBufOf("$")));
assertFalse(channel.writeInbound(byteBufOf(Integer.toString(content.length))));
assertFalse(channel.writeInbound(byteBufOf("\r\n")));
assertFalse(channel.writeInbound(byteBufOf(content)));
assertTrue(channel.writeInbound(byteBufOf("\r\n")));
FullBulkStringRedisMessage msg = channel.readInbound();
assertArrayEquals(content, bytesOf(msg.content()));
ReferenceCountUtil.release(msg);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldDecodeEmptyBulkString() do?
shouldDecodeEmptyBulkString() is a function in the netty codebase, defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java.
Where is shouldDecodeEmptyBulkString() defined?
shouldDecodeEmptyBulkString() is defined in codec-redis/src/test/java/io/netty/handler/codec/redis/RedisDecoderTest.java at line 189.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free