testQueryDecode() — netty Function Reference
Architecture documentation for the testQueryDecode() function in TcpDnsTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 94d6ac9a_2147_039f_8c17_8c5a13e8de67["testQueryDecode()"] 577c6a24_a466_dd64_fc56_8363340dbefc["TcpDnsTest"] 94d6ac9a_2147_039f_8c17_8c5a13e8de67 -->|defined in| 577c6a24_a466_dd64_fc56_8363340dbefc style 94d6ac9a_2147_039f_8c17_8c5a13e8de67 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java lines 35–49
@Test
public void testQueryDecode() {
EmbeddedChannel channel = new EmbeddedChannel(new TcpDnsQueryDecoder());
int randomID = new Random().nextInt(60000 - 1000) + 1000;
DnsQuery query = new DefaultDnsQuery(randomID, DnsOpCode.QUERY)
.setRecord(DnsSection.QUESTION, new DefaultDnsQuestion(QUERY_DOMAIN, DnsRecordType.A));
assertTrue(channel.writeInbound(query));
DnsQuery readQuery = channel.readInbound();
assertEquals(query, readQuery);
assertEquals(query.recordAt(DnsSection.QUESTION).name(), readQuery.recordAt(DnsSection.QUESTION).name());
readQuery.release();
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testQueryDecode() do?
testQueryDecode() is a function in the netty codebase, defined in codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java.
Where is testQueryDecode() defined?
testQueryDecode() is defined in codec-dns/src/test/java/io/netty/handler/codec/dns/TcpDnsTest.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free