testIsValidIpV6Address() — netty Function Reference
Architecture documentation for the testIsValidIpV6Address() function in NetUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bdd9fee2_cd38_ac16_2b75_432f7b25710e["testIsValidIpV6Address()"] 545234a8_c93e_9bed_bd0e_6c5542a33149["NetUtilTest"] bdd9fee2_cd38_ac16_2b75_432f7b25710e -->|defined in| 545234a8_c93e_9bed_bd0e_6c5542a33149 style bdd9fee2_cd38_ac16_2b75_432f7b25710e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/NetUtilTest.java lines 621–681
@Test
public void testIsValidIpV6Address() {
for (String host : validIpV6Hosts.keySet()) {
assertTrue(isValidIpV6Address(host), host);
if (host.charAt(0) != '[' && !host.contains("%")) {
assertNotNull(getByName(host, true), host);
String hostMod = '[' + host + ']';
assertTrue(isValidIpV6Address(hostMod), hostMod);
hostMod = host + '%';
assertTrue(isValidIpV6Address(hostMod), hostMod);
hostMod = host + "%eth1";
assertTrue(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "%]";
assertTrue(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "%1]";
assertTrue(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "]%";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "]%1";
assertFalse(isValidIpV6Address(hostMod), hostMod);
}
}
for (String host : invalidIpV6Hosts.keySet()) {
assertFalse(isValidIpV6Address(host), host);
assertNull(getByName(host), host);
String hostMod = '[' + host + ']';
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = host + '%';
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = host + "%eth1";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "%]";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "%1]";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "]%";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host + "]%1";
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = host + ']';
assertFalse(isValidIpV6Address(hostMod), hostMod);
hostMod = '[' + host;
assertFalse(isValidIpV6Address(hostMod), hostMod);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIsValidIpV6Address() do?
testIsValidIpV6Address() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/NetUtilTest.java.
Where is testIsValidIpV6Address() defined?
testIsValidIpV6Address() is defined in common/src/test/java/io/netty/util/NetUtilTest.java at line 621.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free