test() — netty Function Reference
Architecture documentation for the test() function in Socks5CommandResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 57eafce2_4597_33ba_95f2_1032bae5b8fe["test()"] 1043f194_ebf4_2696_122a_10f7c5e3f0f4["Socks5CommandResponseDecoderTest"] 57eafce2_4597_33ba_95f2_1032bae5b8fe -->|defined in| 1043f194_ebf4_2696_122a_10f7c5e3f0f4 21357c90_b616_4c45_8cc8_f06dc301fe20["testSocksCmdResponseDecoder()"] 21357c90_b616_4c45_8cc8_f06dc301fe20 -->|calls| 57eafce2_4597_33ba_95f2_1032bae5b8fe e14c3ffa_a7f2_039b_8371_4309805a050a["testInvalidAddress()"] e14c3ffa_a7f2_039b_8371_4309805a050a -->|calls| 57eafce2_4597_33ba_95f2_1032bae5b8fe 5b1a7a90_5336_6276_5ebe_e336797bbf40["testSocksCmdResponseDecoderIncludingHost()"] 5b1a7a90_5336_6276_5ebe_e336797bbf40 -->|calls| 57eafce2_4597_33ba_95f2_1032bae5b8fe style 57eafce2_4597_33ba_95f2_1032bae5b8fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoderTest.java lines 47–61
private static void test(
Socks5CommandStatus status, Socks5AddressType bndAddrType, String bndAddr, int bndPort) {
logger.debug("Testing status: " + status + " bndAddrType: " + bndAddrType);
Socks5CommandResponse msg =
new DefaultSocks5CommandResponse(status, bndAddrType, bndAddr, bndPort);
EmbeddedChannel embedder = new EmbeddedChannel(new Socks5CommandResponseDecoder());
Socks5CommonTestUtils.writeFromServerToClient(embedder, msg);
msg = embedder.readInbound();
assertEquals(msg.status(), status);
if (bndAddr != null) {
assertEquals(msg.bndAddr(), bndAddr);
}
assertEquals(msg.bndPort(), bndPort);
assertNull(embedder.readInbound());
}
Domain
Subdomains
Defined In
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/v5/Socks5CommandResponseDecoderTest.java.
Where is test() defined?
test() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoderTest.java at line 47.
What calls test()?
test() is called by 3 function(s): testInvalidAddress, testSocksCmdResponseDecoder, testSocksCmdResponseDecoderIncludingHost.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free