shouldLogByteBufDataRead() — netty Function Reference
Architecture documentation for the shouldLogByteBufDataRead() function in LoggingHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e9b7dc38_72d3_455e_ef29_e1b24ba8d633["shouldLogByteBufDataRead()"] 12b00413_e6e3_10b5_14c7_7f5ebb4a81a6["LoggingHandlerTest"] e9b7dc38_72d3_455e_ef29_e1b24ba8d633 -->|defined in| 12b00413_e6e3_10b5_14c7_7f5ebb4a81a6 fed55159_8c51_7e31_be70_d41e8f1e239b["RegexLogMatcher()"] e9b7dc38_72d3_455e_ef29_e1b24ba8d633 -->|calls| fed55159_8c51_7e31_be70_d41e8f1e239b style e9b7dc38_72d3_455e_ef29_e1b24ba8d633 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java lines 224–235
@Test
public void shouldLogByteBufDataRead() throws Exception {
ByteBuf msg = Unpooled.copiedBuffer("hello", CharsetUtil.UTF_8);
EmbeddedChannel channel = new EmbeddedChannel(new LoggingHandler(LogLevel.WARN));
channel.writeInbound(msg);
verify(appender).doAppend(argThat(new RegexLogMatcher(".+READ: " + msg.readableBytes() + "B$", true)));
ByteBuf handledMsg = channel.readInbound();
assertSame(msg, handledMsg);
handledMsg.release();
assertNull(channel.readInbound());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does shouldLogByteBufDataRead() do?
shouldLogByteBufDataRead() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java.
Where is shouldLogByteBufDataRead() defined?
shouldLogByteBufDataRead() is defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java at line 224.
What does shouldLogByteBufDataRead() call?
shouldLogByteBufDataRead() calls 1 function(s): RegexLogMatcher.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free