Home / Function/ testIsTextWithAscii() — netty Function Reference

testIsTextWithAscii() — netty Function Reference

Architecture documentation for the testIsTextWithAscii() function in ByteBufUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  459a902a_abf4_c0b9_b894_c4f3189db020["testIsTextWithAscii()"]
  1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"]
  459a902a_abf4_c0b9_b894_c4f3189db020 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7
  341f55f8_87ae_50af_6d34_d1c23e9ddf4c["assertIsText()"]
  459a902a_abf4_c0b9_b894_c4f3189db020 -->|calls| 341f55f8_87ae_50af_6d34_d1c23e9ddf4c
  style 459a902a_abf4_c0b9_b894_c4f3189db020 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 902–910

    @ParameterizedTest(name = PARAMETERIZED_NAME)
    @MethodSource("noUnsafe")
    public void testIsTextWithAscii(BufferType bufferType) {
        byte[] validBytes = {(byte) 0x00, (byte) 0x01, (byte) 0x37, (byte) 0x7F};
        byte[] invalidBytes = {(byte) 0x80, (byte) 0xFF};

        assertIsText(bufferType, validBytes, true, CharsetUtil.US_ASCII);
        assertIsText(bufferType, invalidBytes, false, CharsetUtil.US_ASCII);
    }

Domain

Subdomains

Frequently Asked Questions

What does testIsTextWithAscii() do?
testIsTextWithAscii() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testIsTextWithAscii() defined?
testIsTextWithAscii() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 902.
What does testIsTextWithAscii() call?
testIsTextWithAscii() calls 1 function(s): assertIsText.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free