testRemoveItself() — netty Function Reference
Architecture documentation for the testRemoveItself() function in ByteToMessageDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753["testRemoveItself()"] b1c999fe_35fb_8b70_a958_296cffb0616a["ByteToMessageDecoderTest"] 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753 -->|defined in| b1c999fe_35fb_8b70_a958_296cffb0616a 5082856a_b229_862d_0072_81f9b24f56a3["EmbeddedChannel()"] 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 style 6f8ca1c9_2e0a_cabe_0014_b5ad61e0d753 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java lines 51–71
@Test
public void testRemoveItself() {
EmbeddedChannel channel = new EmbeddedChannel(new ByteToMessageDecoder() {
private boolean removed;
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
assertFalse(removed);
in.readByte();
ctx.pipeline().remove(this);
removed = true;
}
});
ByteBuf buf = Unpooled.wrappedBuffer(new byte[] {'a', 'b', 'c'});
channel.writeInbound(buf.copy());
ByteBuf b = channel.readInbound();
assertEquals(b, buf.skipBytes(1));
b.release();
buf.release();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testRemoveItself() do?
testRemoveItself() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java.
Where is testRemoveItself() defined?
testRemoveItself() is defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java at line 51.
What does testRemoveItself() call?
testRemoveItself() calls 1 function(s): EmbeddedChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free