testSearchDomainWithNdots0() — netty Function Reference
Architecture documentation for the testSearchDomainWithNdots0() function in SearchDomainTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b7c1ce75_2e88_b065_ca94_d1828bbc6f17["testSearchDomainWithNdots0()"] d5ebb464_2572_c131_f90c_00c6ead5a9ed["SearchDomainTest"] b7c1ce75_2e88_b065_ca94_d1828bbc6f17 -->|defined in| d5ebb464_2572_c131_f90c_00c6ead5a9ed 3f8fe794_028b_490d_db01_b9bba8610875["assertNotResolve()"] b7c1ce75_2e88_b065_ca94_d1828bbc6f17 -->|calls| 3f8fe794_028b_490d_db01_b9bba8610875 style b7c1ce75_2e88_b065_ca94_d1828bbc6f17 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java lines 226–250
@Test
public void testSearchDomainWithNdots0() throws Exception {
Set<String> domains = new HashSet<String>();
domains.add("host1");
domains.add("host1.foo.com");
domains.add("host2.foo.com");
TestDnsServer.MapRecordStoreA store = new TestDnsServer.MapRecordStoreA(domains);
dnsServer = new TestDnsServer(store);
dnsServer.start();
resolver = newResolver().searchDomains(Collections.singleton("foo.com")).ndots(0).build();
// "host1" resolves directly as ndots = 0
String resolved = assertResolve(resolver, "host1");
assertEquals(store.getAddress("host1"), resolved);
// "host1.foo.com" resolves to host1.foo
resolved = assertResolve(resolver, "host1.foo.com");
assertEquals(store.getAddress("host1.foo.com"), resolved);
// "host2" shouldn't resolve because it is not in the known domain names, and "host2" has 0 dots which is not
// less ndots (which is also 0).
assertNotResolve(resolver, "host2");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testSearchDomainWithNdots0() do?
testSearchDomainWithNdots0() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java.
Where is testSearchDomainWithNdots0() defined?
testSearchDomainWithNdots0() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java at line 226.
What does testSearchDomainWithNdots0() call?
testSearchDomainWithNdots0() calls 1 function(s): assertNotResolve.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free