Home / Function/ shouldLogByteBufDataReadWithSimpleFormat() — netty Function Reference

shouldLogByteBufDataReadWithSimpleFormat() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java lines 237–248

    @Test
    public void shouldLogByteBufDataReadWithSimpleFormat() throws Exception {
        ByteBuf msg = Unpooled.copiedBuffer("hello", CharsetUtil.UTF_8);
        EmbeddedChannel channel = new EmbeddedChannel(new LoggingHandler(LogLevel.WARN, ByteBufFormat.SIMPLE));
        channel.writeInbound(msg);
        verify(appender).doAppend(argThat(new RegexLogMatcher(".+READ: " + msg.readableBytes() + "B$", false)));

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

Domain

Subdomains

Frequently Asked Questions

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