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