test() — netty Function Reference
Architecture documentation for the test() function in Socks4ClientDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d5ecd4fc_8e21_7fb4_38a5_d37ff44c20c9["test()"] 59009bc2_846d_8eb2_7ef3_75dc2b38053b["Socks4ClientDecoderTest"] d5ecd4fc_8e21_7fb4_38a5_d37ff44c20c9 -->|defined in| 59009bc2_846d_8eb2_7ef3_75dc2b38053b 34c72cad_efd8_58be_1291_1d6d90f2d001["testSocksCmdResponseDecoder()"] 34c72cad_efd8_58be_1291_1d6d90f2d001 -->|calls| d5ecd4fc_8e21_7fb4_38a5_d37ff44c20c9 style d5ecd4fc_8e21_7fb4_38a5_d37ff44c20c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4ClientDecoderTest.java lines 29–42
private static void test(Socks4CommandStatus cmdStatus, String dstAddr, int dstPort) {
logger.debug("Testing cmdStatus: " + cmdStatus);
Socks4CommandResponse msg = new DefaultSocks4CommandResponse(cmdStatus, dstAddr, dstPort);
EmbeddedChannel embedder = new EmbeddedChannel(new Socks4ClientDecoder());
Socks4CommonTestUtils.writeMessageIntoEmbedder(embedder, msg);
msg = embedder.readInbound();
assertEquals(msg.status(), cmdStatus);
if (dstAddr != null) {
assertEquals(msg.dstAddr(), dstAddr);
}
assertEquals(msg.dstPort(), dstPort);
assertNull(embedder.readInbound());
}
Domain
Subdomains
Called By
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/v4/Socks4ClientDecoderTest.java.
Where is test() defined?
test() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4ClientDecoderTest.java at line 29.
What calls test()?
test() is called by 1 function(s): testSocksCmdResponseDecoder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free