testEmptyDomain() — netty Function Reference
Architecture documentation for the testEmptyDomain() function in SocksCmdResponseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5a496cd7_a328_5b67_36a6_bb735c960298["testEmptyDomain()"] 759f4396_b47c_b08f_fc0d_7ab762d522b4["SocksCmdResponseTest"] 5a496cd7_a328_5b67_36a6_bb735c960298 -->|defined in| 759f4396_b47c_b08f_fc0d_7ab762d522b4 1d46d86e_b219_5c38_8699_4a70b202d12d["assertByteBufEquals()"] 5a496cd7_a328_5b67_36a6_bb735c960298 -->|calls| 1d46d86e_b219_5c38_8699_4a70b202d12d style 5a496cd7_a328_5b67_36a6_bb735c960298 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseTest.java lines 52–70
@Test
public void testEmptyDomain() {
SocksCmdResponse socksCmdResponse = new SocksCmdResponse(SocksCmdStatus.SUCCESS, SocksAddressType.DOMAIN);
assertNull(socksCmdResponse.host());
assertEquals(0, socksCmdResponse.port());
ByteBuf buffer = Unpooled.buffer(20);
socksCmdResponse.encodeAsByteBuf(buffer);
byte[] expected = {
0x05, // version
0x00, // success reply
0x00, // reserved
0x03, // address type domain
0x01, // length of domain
0x00, // domain value
0x00, // port value
0x00
};
assertByteBufEquals(expected, buffer);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testEmptyDomain() do?
testEmptyDomain() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseTest.java.
Where is testEmptyDomain() defined?
testEmptyDomain() is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseTest.java at line 52.
What does testEmptyDomain() call?
testEmptyDomain() calls 1 function(s): assertByteBufEquals.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free