Home / Function/ assertInstanceOf() — netty Function Reference

assertInstanceOf() — netty Function Reference

Architecture documentation for the assertInstanceOf() function in AbstractByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  964154f2_d301_0bc6_b8d5_7b427c51c0d3["assertInstanceOf()"]
  7ff0721a_af2d_e20c_7c69_b0b95f85fcac["AbstractByteBufAllocatorTest"]
  964154f2_d301_0bc6_b8d5_7b427c51c0d3 -->|defined in| 7ff0721a_af2d_e20c_7c69_b0b95f85fcac
  fa87f171_782f_d03f_d04f_dede8e06be3d["testUnsafeHeapBufferAndUnsafeDirectBuffer()"]
  fa87f171_782f_d03f_d04f_dede8e06be3d -->|calls| 964154f2_d301_0bc6_b8d5_7b427c51c0d3
  style 964154f2_d301_0bc6_b8d5_7b427c51c0d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java lines 103–109

    protected static void assertInstanceOf(ByteBuf buffer, Class<? extends ByteBuf> clazz) {
        // Unwrap if needed
        if (buffer instanceof SimpleLeakAwareByteBuf) {
            buffer = buffer.unwrap();
        }
        assertThat(buffer).isInstanceOf(clazz);
    }

Domain

Subdomains

Frequently Asked Questions

What does assertInstanceOf() do?
assertInstanceOf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java.
Where is assertInstanceOf() defined?
assertInstanceOf() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java at line 103.
What calls assertInstanceOf()?
assertInstanceOf() is called by 1 function(s): testUnsafeHeapBufferAndUnsafeDirectBuffer.

Analyze Your Own Codebase

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

Try Supermodel Free