Home / Function/ testInvalidTypeInbound() — netty Function Reference

testInvalidTypeInbound() — netty Function Reference

Architecture documentation for the testInvalidTypeInbound() function in AbstractHttp3FrameTypeValidationHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3e957452_58be_8d15_2746_a43bf66a77a8["testInvalidTypeInbound()"]
  31f14ae0_7748_87a0_a9e5_5f2bdd8e1c2e["AbstractHttp3FrameTypeValidationHandlerTest"]
  3e957452_58be_8d15_2746_a43bf66a77a8 -->|defined in| 31f14ae0_7748_87a0_a9e5_5f2bdd8e1c2e
  66d22a34_2aa1_c0de_9f06_f8a33ee659e3["setUp()"]
  3e957452_58be_8d15_2746_a43bf66a77a8 -->|calls| 66d22a34_2aa1_c0de_9f06_f8a33ee659e3
  af49657f_fa1b_8dcf_8ea3_07838f93e061["newInvalidFrames()"]
  3e957452_58be_8d15_2746_a43bf66a77a8 -->|calls| af49657f_fa1b_8dcf_8ea3_07838f93e061
  style 3e957452_58be_8d15_2746_a43bf66a77a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/AbstractHttp3FrameTypeValidationHandlerTest.java lines 125–142

    @ParameterizedTest(name = "{index}: server = {0}")
    @MethodSource("data")
    public void testInvalidTypeInbound(boolean server) throws Exception {
        assumeTrue(isInbound);
        setUp(server);
        final EmbeddedQuicStreamChannel channel = newStream(defaultStreamType, newHandler(server));

        Http3ErrorCode errorCode = inboundErrorCodeInvalid();
        List<Http3Frame> invalidFrames = newInvalidFrames();
        for (Http3Frame invalid : invalidFrames) {
            Exception e = assertThrows(Exception.class, () -> channel.writeInbound(invalid));
            assertException(errorCode, e);

            assertFrameReleased(invalid);
        }
        verifyClose(invalidFrames.size(), errorCode, parent);
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testInvalidTypeInbound() do?
testInvalidTypeInbound() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/AbstractHttp3FrameTypeValidationHandlerTest.java.
Where is testInvalidTypeInbound() defined?
testInvalidTypeInbound() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/AbstractHttp3FrameTypeValidationHandlerTest.java at line 125.
What does testInvalidTypeInbound() call?
testInvalidTypeInbound() calls 2 function(s): newInvalidFrames, setUp.

Analyze Your Own Codebase

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

Try Supermodel Free