testSocksCmdRequestDecoderWithDifferentParams() — netty Function Reference
Architecture documentation for the testSocksCmdRequestDecoderWithDifferentParams() function in SocksCmdRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a["testSocksCmdRequestDecoderWithDifferentParams()"] b310d236_86c5_c256_55ec_07e2514edd9f["SocksCmdRequestDecoderTest"] 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a -->|defined in| b310d236_86c5_c256_55ec_07e2514edd9f d971d68f_ae7f_5c02_6f9f_f79297f8f9f9["testCmdRequestDecoderIPv4()"] d971d68f_ae7f_5c02_6f9f_f79297f8f9f9 -->|calls| 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a fab42f80_bda0_c333_66a5_a27202121ec4["testCmdRequestDecoderIPv6()"] fab42f80_bda0_c333_66a5_a27202121ec4 -->|calls| 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a c432bb15_69b6_6e02_474e_0ffc32f541ef["testCmdRequestDecoderDomain()"] c432bb15_69b6_6e02_474e_0ffc32f541ef -->|calls| 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a 4f7701c4_c706_1c1c_da7d_a0844154dee0["testCmdRequestDecoderUnknown()"] 4f7701c4_c706_1c1c_da7d_a0844154dee0 -->|calls| 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a style 6e40a760_b5e1_a0ac_d9e7_a4b3ac495a1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestDecoderTest.java lines 34–54
private static void testSocksCmdRequestDecoderWithDifferentParams(SocksCmdType cmdType,
SocksAddressType addressType,
String host,
int port) {
logger.debug("Testing cmdType: " + cmdType + " addressType: " + addressType + " host: " + host +
" port: " + port);
SocksCmdRequest msg = new SocksCmdRequest(cmdType, addressType, host, port);
SocksCmdRequestDecoder decoder = new SocksCmdRequestDecoder();
EmbeddedChannel embedder = new EmbeddedChannel(decoder);
SocksCommonTestUtils.writeMessageIntoEmbedder(embedder, msg);
if (msg.addressType() == SocksAddressType.UNKNOWN) {
assertTrue(embedder.readInbound() instanceof UnknownSocksRequest);
} else {
msg = embedder.readInbound();
assertSame(msg.cmdType(), cmdType);
assertSame(msg.addressType(), addressType);
assertEquals(msg.host(), host);
assertEquals(msg.port(), port);
}
assertNull(embedder.readInbound());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does testSocksCmdRequestDecoderWithDifferentParams() do?
testSocksCmdRequestDecoderWithDifferentParams() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestDecoderTest.java.
Where is testSocksCmdRequestDecoderWithDifferentParams() defined?
testSocksCmdRequestDecoderWithDifferentParams() is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestDecoderTest.java at line 34.
What calls testSocksCmdRequestDecoderWithDifferentParams()?
testSocksCmdRequestDecoderWithDifferentParams() is called by 4 function(s): testCmdRequestDecoderDomain, testCmdRequestDecoderIPv4, testCmdRequestDecoderIPv6, testCmdRequestDecoderUnknown.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free