Home / Function/ testBigReadsPermittedIfUnderlyingStreamIsSmall() — netty Function Reference

testBigReadsPermittedIfUnderlyingStreamIsSmall() — netty Function Reference

Architecture documentation for the testBigReadsPermittedIfUnderlyingStreamIsSmall() function in BoundedInputStreamTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2a12bf1e_ff86_8203_f091_bfa155f96791["testBigReadsPermittedIfUnderlyingStreamIsSmall()"]
  ab2c52d1_4dad_2c5a_94ad_a0909a9613d1["BoundedInputStreamTest"]
  2a12bf1e_ff86_8203_f091_bfa155f96791 -->|defined in| ab2c52d1_4dad_2c5a_94ad_a0909a9613d1
  style 2a12bf1e_ff86_8203_f091_bfa155f96791 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java lines 67–76

    @RepeatedTest(50)
    void testBigReadsPermittedIfUnderlyingStreamIsSmall() throws IOException {
        final byte[] bytes = new byte[64];
        ThreadLocalRandom.current().nextBytes(bytes);
        try (BoundedInputStream reader = new BoundedInputStream(new ByteArrayInputStream(bytes), 8192)) {
            final byte[] buffer = new byte[10000];
            assertThat(reader.read(buffer, 0, 10000)).isEqualTo(64);
            assertArrayEquals(bytes, Arrays.copyOfRange(buffer, 0, 64));
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testBigReadsPermittedIfUnderlyingStreamIsSmall() do?
testBigReadsPermittedIfUnderlyingStreamIsSmall() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java.
Where is testBigReadsPermittedIfUnderlyingStreamIsSmall() defined?
testBigReadsPermittedIfUnderlyingStreamIsSmall() is defined in common/src/test/java/io/netty/util/internal/BoundedInputStreamTest.java at line 67.

Analyze Your Own Codebase

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

Try Supermodel Free