test() — netty Function Reference
Architecture documentation for the test() function in Socks5CommandRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f1cb7c8e_8115_47d0_8e85_39e49c6ce71b["test()"] c1fe2676_ad04_03d5_49da_b916e772c7ab["Socks5CommandRequestDecoderTest"] f1cb7c8e_8115_47d0_8e85_39e49c6ce71b -->|defined in| c1fe2676_ad04_03d5_49da_b916e772c7ab 3fe90d58_74d5_1efc_0b1c_319582f3d5e3["testCmdRequestDecoderIPv4()"] 3fe90d58_74d5_1efc_0b1c_319582f3d5e3 -->|calls| f1cb7c8e_8115_47d0_8e85_39e49c6ce71b 8bc3fa11_123c_7199_2e4c_5bbec4673861["testCmdRequestDecoderIPv6()"] 8bc3fa11_123c_7199_2e4c_5bbec4673861 -->|calls| f1cb7c8e_8115_47d0_8e85_39e49c6ce71b 51194caa_1e61_2f04_4deb_122e92748b64["testCmdRequestDecoderDomain()"] 51194caa_1e61_2f04_4deb_122e92748b64 -->|calls| f1cb7c8e_8115_47d0_8e85_39e49c6ce71b style f1cb7c8e_8115_47d0_8e85_39e49c6ce71b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5CommandRequestDecoderTest.java lines 37–53
private static void test(
Socks5CommandType type, Socks5AddressType dstAddrType, String dstAddr, int dstPort) {
logger.debug(
"Testing type: " + type + " dstAddrType: " + dstAddrType +
" dstAddr: " + dstAddr + " dstPort: " + dstPort);
Socks5CommandRequest msg =
new DefaultSocks5CommandRequest(type, dstAddrType, dstAddr, dstPort);
EmbeddedChannel embedder = new EmbeddedChannel(new Socks5CommandRequestDecoder());
Socks5CommonTestUtils.writeFromClientToServer(embedder, msg);
msg = embedder.readInbound();
assertSame(msg.type(), type);
assertSame(msg.dstAddrType(), dstAddrType);
assertEquals(msg.dstAddr(), IDN.toASCII(dstAddr));
assertEquals(msg.dstPort(), dstPort);
assertNull(embedder.readInbound());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test() do?
test() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5CommandRequestDecoderTest.java.
Where is test() defined?
test() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5CommandRequestDecoderTest.java at line 37.
What calls test()?
test() is called by 3 function(s): testCmdRequestDecoderDomain, testCmdRequestDecoderIPv4, testCmdRequestDecoderIPv6.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free