testSingleton() — netty Function Reference
Architecture documentation for the testSingleton() function in DnsServerAddressesTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 453b3ceb_fe6c_d3b6_13a0_828d5cbd04de["testSingleton()"] 5e098133_8799_36b0_831e_916993c44d46["DnsServerAddressesTest"] 453b3ceb_fe6c_d3b6_13a0_828d5cbd04de -->|defined in| 5e098133_8799_36b0_831e_916993c44d46 9491348f_87f9_78d9_a47a_56206159eb1f["assertNext()"] 453b3ceb_fe6c_d3b6_13a0_828d5cbd04de -->|calls| 9491348f_87f9_78d9_a47a_56206159eb1f style 453b3ceb_fe6c_d3b6_13a0_828d5cbd04de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/test/java/io/netty/resolver/dns/DnsServerAddressesTest.java lines 113–124
@Test
public void testSingleton() {
DnsServerAddresses seq = DnsServerAddresses.singleton(ADDR1);
// Should return the same iterator instance for least possible footprint.
assertSame(seq.stream(), seq.stream());
DnsServerAddressStream i = seq.stream();
assertNext(i, ADDR1);
assertNext(i, ADDR1);
assertNext(i, ADDR1);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testSingleton() do?
testSingleton() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsServerAddressesTest.java.
Where is testSingleton() defined?
testSingleton() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DnsServerAddressesTest.java at line 113.
What does testSingleton() call?
testSingleton() calls 1 function(s): assertNext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free