testRemoveItself() — netty Function Reference
Architecture documentation for the testRemoveItself() function in ReplayingDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 784a7821_3731_4891_063f_93d5ed6a12a9["testRemoveItself()"] 342ea63b_1bca_5900_7b37_0cc8ddc3402d["ReplayingDecoderTest"] 784a7821_3731_4891_063f_93d5ed6a12a9 -->|defined in| 342ea63b_1bca_5900_7b37_0cc8ddc3402d 0bda4795_4d98_a4e1_d850_763cc1379646["decode()"] 784a7821_3731_4891_063f_93d5ed6a12a9 -->|calls| 0bda4795_4d98_a4e1_d850_763cc1379646 style 784a7821_3731_4891_063f_93d5ed6a12a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java lines 141–161
@Test
public void testRemoveItself() {
EmbeddedChannel channel = new EmbeddedChannel(new ReplayingDecoder() {
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/ReplayingDecoderTest.java.
Where is testRemoveItself() defined?
testRemoveItself() is defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java at line 141.
What does testRemoveItself() call?
testRemoveItself() calls 1 function(s): decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free