testSuppressed() — netty Function Reference
Architecture documentation for the testSuppressed() function in DefaultDnsCacheTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9655cb51_b4d5_792c_29e2_0b4cbaf764d3["testSuppressed()"] 6fc766f6_eb26_5b64_4561_08621961737e["DefaultDnsCacheTest"] 9655cb51_b4d5_792c_29e2_0b4cbaf764d3 -->|defined in| 6fc766f6_eb26_5b64_4561_08621961737e 141f4968_63f0_bcdc_e323_11b37f793fd0["testCacheExceptionIsSafe()"] 141f4968_63f0_bcdc_e323_11b37f793fd0 -->|calls| 9655cb51_b4d5_792c_29e2_0b4cbaf764d3 fa594583_90fc_fd6a_2b4c_0e5bb7b5d4dd["assertThrowable()"] 9655cb51_b4d5_792c_29e2_0b4cbaf764d3 -->|calls| fa594583_90fc_fd6a_2b4c_0e5bb7b5d4dd style 9655cb51_b4d5_792c_29e2_0b4cbaf764d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java lines 222–236
private static void testSuppressed(DnsCache cache, Throwable exception, EventLoop loop) {
String hostname = UUID.randomUUID().toString();
cache.cache(hostname, null, exception, loop);
List<? extends DnsCacheEntry> entries = cache.get(hostname, null);
DnsCacheEntry entry = entries.get(0);
assertEquals(1, entries.size());
assertNotSame(exception, entry.cause());
assertThrowable(exception, entry.cause());
entry.cause().addSuppressed(new Throwable());
assertEquals(0, exception.getSuppressed().length);
assertEquals(1, entry.cause().getSuppressed().length);
assertNull(entry.address());
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does testSuppressed() do?
testSuppressed() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java.
Where is testSuppressed() defined?
testSuppressed() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java at line 222.
What does testSuppressed() call?
testSuppressed() calls 1 function(s): assertThrowable.
What calls testSuppressed()?
testSuppressed() is called by 1 function(s): testCacheExceptionIsSafe.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free