Home / Function/ testWildcardMatchesAnyPrefix() — netty Function Reference

testWildcardMatchesAnyPrefix() — netty Function Reference

Architecture documentation for the testWildcardMatchesAnyPrefix() function in DomainNameMappingTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4ba25dd3_7163_febd_156b_dc3a3beed8a2["testWildcardMatchesAnyPrefix()"]
  a7e40a68_a0cc_c785_e126_3c2e680ed006["DomainNameMappingTest"]
  4ba25dd3_7163_febd_156b_dc3a3beed8a2 -->|defined in| a7e40a68_a0cc_c785_e126_3c2e680ed006
  style 4ba25dd3_7163_febd_156b_dc3a3beed8a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/DomainNameMappingTest.java lines 178–189

    @Test
    public void testWildcardMatchesAnyPrefix() {
        DomainNameMapping<String> mapping = new DomainNameMappingBuilder<String>("NotFound")
            .add("*.netty.io", "Netty")
            .build();

        assertEquals("Netty", mapping.map("netty.io"));
        assertEquals("Netty", mapping.map("downloads.netty.io"));
        assertEquals("Netty", mapping.map("x.y.z.netty.io"));

        assertEquals("NotFound", mapping.map("netty.io.x"));
    }

Domain

Subdomains

Frequently Asked Questions

What does testWildcardMatchesAnyPrefix() do?
testWildcardMatchesAnyPrefix() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/DomainNameMappingTest.java.
Where is testWildcardMatchesAnyPrefix() defined?
testWildcardMatchesAnyPrefix() is defined in common/src/test/java/io/netty/util/DomainNameMappingTest.java at line 178.

Analyze Your Own Codebase

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

Try Supermodel Free