Home / Function/ testCloseHalfClosure() — netty Function Reference

testCloseHalfClosure() — netty Function Reference

Architecture documentation for the testCloseHalfClosure() function in QuicStreamFrameTest.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  f94a8858_193b_14f6_d8b0_3e3fd07aa73d["testCloseHalfClosure()"]
  1b8808c2_77d6_7455_836f_569e62842ec3["QuicStreamFrameTest"]
  f94a8858_193b_14f6_d8b0_3e3fd07aa73d -->|defined in| 1b8808c2_77d6_7455_836f_569e62842ec3
  8a583cf1_c208_9baa_4bb7_47217be4f8c2["testCloseHalfClosureUnidirectional()"]
  8a583cf1_c208_9baa_4bb7_47217be4f8c2 -->|calls| f94a8858_193b_14f6_d8b0_3e3fd07aa73d
  f71723e7_7ec9_fba3_9516_bfe00b12a9ec["testCloseHalfClosureBidirectional()"]
  f71723e7_7ec9_fba3_9516_bfe00b12a9ec -->|calls| f94a8858_193b_14f6_d8b0_3e3fd07aa73d
  31f176a0_a3e1_1fe9_9056_4b264bdcb055["StreamCreationHandler()"]
  f94a8858_193b_14f6_d8b0_3e3fd07aa73d -->|calls| 31f176a0_a3e1_1fe9_9056_4b264bdcb055
  7be3830e_d641_b8cf_a6de_9ed019419558["assertSequence()"]
  f94a8858_193b_14f6_d8b0_3e3fd07aa73d -->|calls| 7be3830e_d641_b8cf_a6de_9ed019419558
  style f94a8858_193b_14f6_d8b0_3e3fd07aa73d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java lines 48–75

    private static void testCloseHalfClosure(Executor executor, QuicStreamType type) throws Throwable {
        Channel server = null;
        Channel channel = null;
        QuicChannelValidationHandler serverHandler = new QuicChannelValidationHandler();
        QuicChannelValidationHandler clientHandler = new StreamCreationHandler(type);
        try {
            StreamHandler handler = new StreamHandler();
            server = QuicTestUtils.newServer(executor, serverHandler, handler);
            channel = QuicTestUtils.newClient(executor);
            QuicChannel quicChannel = QuicTestUtils.newQuicChannelBootstrap(channel)
                    .handler(clientHandler)
                    .streamHandler(new ChannelInboundHandlerAdapter())
                    .remoteAddress(server.localAddress())
                    .connect()
                    .get();

            handler.assertSequence();
            quicChannel.closeFuture().sync();

            serverHandler.assertState();
            clientHandler.assertState();
        } finally {
            QuicTestUtils.closeIfNotNull(channel);
            QuicTestUtils.closeIfNotNull(server);

            shutdown(executor);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testCloseHalfClosure() do?
testCloseHalfClosure() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java.
Where is testCloseHalfClosure() defined?
testCloseHalfClosure() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java at line 48.
What does testCloseHalfClosure() call?
testCloseHalfClosure() calls 2 function(s): StreamCreationHandler, assertSequence.
What calls testCloseHalfClosure()?
testCloseHalfClosure() is called by 2 function(s): testCloseHalfClosureBidirectional, testCloseHalfClosureUnidirectional.

Analyze Your Own Codebase

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

Try Supermodel Free