testSearchForMultipleOverlapping() — netty Function Reference
Architecture documentation for the testSearchForMultipleOverlapping() function in MultiSearchProcessorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c275d49d_392d_9cdc_8b28_e7829b98d873["testSearchForMultipleOverlapping()"] a8e37b86_7953_7ee3_77cd_bf0850236222["MultiSearchProcessorTest"] c275d49d_392d_9cdc_8b28_e7829b98d873 -->|defined in| a8e37b86_7953_7ee3_77cd_bf0850236222 116a4472_a951_e809_485f_110d4e496074["bytes()"] c275d49d_392d_9cdc_8b28_e7829b98d873 -->|calls| 116a4472_a951_e809_485f_110d4e496074 style c275d49d_392d_9cdc_8b28_e7829b98d873 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/search/MultiSearchProcessorTest.java lines 57–78
@Test
public void testSearchForMultipleOverlapping() {
final ByteBuf haystack = Unpooled.copiedBuffer("abcd", CharsetUtil.UTF_8);
final int length = haystack.readableBytes();
final MultiSearchProcessor processor = AbstractMultiSearchProcessorFactory.newAhoCorasicSearchProcessorFactory(
bytes("ab"),
bytes("bc"),
bytes("cd")
).newSearchProcessor();
assertEquals(1, haystack.forEachByte(processor));
assertEquals(0, processor.getFoundNeedleId()); // index of "ab" in needles[]
assertEquals(2, haystack.forEachByte(2, length - 2, processor));
assertEquals(1, processor.getFoundNeedleId()); // index of "bc" in needles[]
assertEquals(3, haystack.forEachByte(3, length - 3, processor));
assertEquals(2, processor.getFoundNeedleId()); // index of "cd" in needles[]
haystack.release();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testSearchForMultipleOverlapping() do?
testSearchForMultipleOverlapping() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/search/MultiSearchProcessorTest.java.
Where is testSearchForMultipleOverlapping() defined?
testSearchForMultipleOverlapping() is defined in buffer/src/test/java/io/netty/buffer/search/MultiSearchProcessorTest.java at line 57.
What does testSearchForMultipleOverlapping() call?
testSearchForMultipleOverlapping() calls 1 function(s): bytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free