Home / Function/ assertByteBufEquals() — netty Function Reference

assertByteBufEquals() — netty Function Reference

Architecture documentation for the assertByteBufEquals() function in DefaultSocks5CommandResponseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  449e07db_693f_b642_fc12_ae4f35b98d28["assertByteBufEquals()"]
  e01c7dc8_7557_4308_a80b_72f78a32ae96["DefaultSocks5CommandResponseTest"]
  449e07db_693f_b642_fc12_ae4f35b98d28 -->|defined in| e01c7dc8_7557_4308_a80b_72f78a32ae96
  31c5ad72_9dd2_9cca_34db_99d364adc3cd["testEmptyDomain()"]
  31c5ad72_9dd2_9cca_34db_99d364adc3cd -->|calls| 449e07db_693f_b642_fc12_ae4f35b98d28
  bdb1f112_5940_2a72_2ecf_e595429ca4bc["testIPv4Host()"]
  bdb1f112_5940_2a72_2ecf_e595429ca4bc -->|calls| 449e07db_693f_b642_fc12_ae4f35b98d28
  ee4169bb_ae8c_b389_f14c_852cd504f74e["testEmptyBoundAddress()"]
  ee4169bb_ae8c_b389_f14c_852cd504f74e -->|calls| 449e07db_693f_b642_fc12_ae4f35b98d28
  style 449e07db_693f_b642_fc12_ae4f35b98d28 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java lines 132–137

    private static void assertByteBufEquals(byte[] expected, ByteBuf actual) {
        byte[] actualBytes = new byte[actual.readableBytes()];
        actual.readBytes(actualBytes);
        assertEquals(expected.length, actualBytes.length, "Generated response has incorrect length");
        assertArrayEquals(expected, actualBytes, "Generated response differs from expected");
    }

Domain

Subdomains

Frequently Asked Questions

What does assertByteBufEquals() do?
assertByteBufEquals() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java.
Where is assertByteBufEquals() defined?
assertByteBufEquals() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java at line 132.
What calls assertByteBufEquals()?
assertByteBufEquals() is called by 3 function(s): testEmptyBoundAddress, testEmptyDomain, testIPv4Host.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free