Home / Function/ shouldLogEmptyByteBufDataRead() — netty Function Reference

shouldLogEmptyByteBufDataRead() — netty Function Reference

Architecture documentation for the shouldLogEmptyByteBufDataRead() function in LoggingHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8f15f29a_b6ee_bed8_1d50_b0b5c9697e70["shouldLogEmptyByteBufDataRead()"]
  12b00413_e6e3_10b5_14c7_7f5ebb4a81a6["LoggingHandlerTest"]
  8f15f29a_b6ee_bed8_1d50_b0b5c9697e70 -->|defined in| 12b00413_e6e3_10b5_14c7_7f5ebb4a81a6
  fed55159_8c51_7e31_be70_d41e8f1e239b["RegexLogMatcher()"]
  8f15f29a_b6ee_bed8_1d50_b0b5c9697e70 -->|calls| fed55159_8c51_7e31_be70_d41e8f1e239b
  style 8f15f29a_b6ee_bed8_1d50_b0b5c9697e70 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java lines 250–260

    @Test
    public void shouldLogEmptyByteBufDataRead() throws Exception {
        ByteBuf msg = Unpooled.EMPTY_BUFFER;
        EmbeddedChannel channel = new EmbeddedChannel(new LoggingHandler(LogLevel.WARN));
        channel.writeInbound(msg);
        verify(appender).doAppend(argThat(new RegexLogMatcher(".+READ: 0B$", false)));

        ByteBuf handledMsg = channel.readInbound();
        assertSame(msg, handledMsg);
        assertNull(channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldLogEmptyByteBufDataRead() do?
shouldLogEmptyByteBufDataRead() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java.
Where is shouldLogEmptyByteBufDataRead() defined?
shouldLogEmptyByteBufDataRead() is defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java at line 250.
What does shouldLogEmptyByteBufDataRead() call?
shouldLogEmptyByteBufDataRead() 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