Home / Function/ doTestParseResolverFilesAllowsBlockingCalls() — netty Function Reference

doTestParseResolverFilesAllowsBlockingCalls() — netty Function Reference

Architecture documentation for the doTestParseResolverFilesAllowsBlockingCalls() function in NettyBlockHoundIntegrationTest.java from the netty codebase.

Function java Buffer Search called by 3

Entity Profile

Dependency Diagram

graph TD
  1b763604_14ae_5496_0dcb_9601ac4573a6["doTestParseResolverFilesAllowsBlockingCalls()"]
  746a8721_66e8_40dd_5dc1_a4c697fa84e4["NettyBlockHoundIntegrationTest"]
  1b763604_14ae_5496_0dcb_9601ac4573a6 -->|defined in| 746a8721_66e8_40dd_5dc1_a4c697fa84e4
  6f4cf3ac_a626_486d_828d_3afc0ed4fe33["testUnixResolverDnsServerAddressStreamProvider_Parse()"]
  6f4cf3ac_a626_486d_828d_3afc0ed4fe33 -->|calls| 1b763604_14ae_5496_0dcb_9601ac4573a6
  a685670b_6610_13f5_6c31_714b62d898ee["testHostsFileParser_Parse()"]
  a685670b_6610_13f5_6c31_714b62d898ee -->|calls| 1b763604_14ae_5496_0dcb_9601ac4573a6
  1436c6b0_b0f2_80ac_096c_a20031678763["testUnixResolverDnsServerAddressStreamProvider_ParseEtcResolverSearchDomainsAndOptions()"]
  1436c6b0_b0f2_80ac_096c_a20031678763 -->|calls| 1b763604_14ae_5496_0dcb_9601ac4573a6
  style 1b763604_14ae_5496_0dcb_9601ac4573a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java lines 423–455

    private static void doTestParseResolverFilesAllowsBlockingCalls(Callable<Object> callable)
            throws InterruptedException {
        SingleThreadEventExecutor executor =
                new SingleThreadEventExecutor(null, new DefaultThreadFactory("test"), true) {
                    @Override
                    protected void run() {
                        while (!confirmShutdown()) {
                            Runnable task = takeTask();
                            if (task != null) {
                                task.run();
                            }
                        }
                    }
                };
        try {
            CountDownLatch latch = new CountDownLatch(1);
            List<Object> result = new ArrayList<>();
            List<Throwable> error = new ArrayList<>();
            executor.execute(() -> {
                try {
                    result.add(callable.call());
                } catch (Throwable t) {
                    error.add(t);
                }
                latch.countDown();
            });
            latch.await();
            assertEquals(0, error.size());
            assertEquals(1, result.size());
        } finally {
            executor.shutdownGracefully();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does doTestParseResolverFilesAllowsBlockingCalls() do?
doTestParseResolverFilesAllowsBlockingCalls() is a function in the netty codebase, defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java.
Where is doTestParseResolverFilesAllowsBlockingCalls() defined?
doTestParseResolverFilesAllowsBlockingCalls() is defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java at line 423.
What calls doTestParseResolverFilesAllowsBlockingCalls()?
doTestParseResolverFilesAllowsBlockingCalls() is called by 3 function(s): testHostsFileParser_Parse, testUnixResolverDnsServerAddressStreamProvider_Parse, testUnixResolverDnsServerAddressStreamProvider_ParseEtcResolverSearchDomainsAndOptions.

Analyze Your Own Codebase

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

Try Supermodel Free