Home / Function/ attemptsOptionIsParsedIfPresent() — netty Function Reference

attemptsOptionIsParsedIfPresent() — netty Function Reference

Architecture documentation for the attemptsOptionIsParsedIfPresent() function in UnixResolverDnsServerAddressStreamProviderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4099d7b2_4be2_8fb3_121d_eaa52c925e83["attemptsOptionIsParsedIfPresent()"]
  41d853d7_ce22_381d_87e1_1ee33fc781c4["UnixResolverDnsServerAddressStreamProviderTest"]
  4099d7b2_4be2_8fb3_121d_eaa52c925e83 -->|defined in| 41d853d7_ce22_381d_87e1_1ee33fc781c4
  style 4099d7b2_4be2_8fb3_121d_eaa52c925e83 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/UnixResolverDnsServerAddressStreamProviderTest.java lines 179–190

    @Test
    public void attemptsOptionIsParsedIfPresent(@TempDir Path tempDir) throws IOException {
        File f = buildFile(tempDir, "search localdomain\n" +
            "nameserver 127.0.0.11\n" +
            "options attempts:0\n");
        assertEquals(0, parseEtcResolverOptions(f).attempts());

        f = buildFile(tempDir, "search localdomain\n" +
            "nameserver 127.0.0.11\n" +
            "options foo:bar attempts:12\n");
        assertEquals(12, parseEtcResolverOptions(f).attempts());
    }

Domain

Subdomains

Frequently Asked Questions

What does attemptsOptionIsParsedIfPresent() do?
attemptsOptionIsParsedIfPresent() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/UnixResolverDnsServerAddressStreamProviderTest.java.
Where is attemptsOptionIsParsedIfPresent() defined?
attemptsOptionIsParsedIfPresent() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/UnixResolverDnsServerAddressStreamProviderTest.java at line 179.

Analyze Your Own Codebase

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

Try Supermodel Free