testIndexOf() — netty Function Reference
Architecture documentation for the testIndexOf() function in AsciiStringCharacterTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d051d32d_e87d_7ea8_8c7b_34888e6adf2e["testIndexOf()"] fd37c1f8_6129_8e57_ad6d_da01ffebceb6["AsciiStringCharacterTest"] d051d32d_e87d_7ea8_8c7b_34888e6adf2e -->|defined in| fd37c1f8_6129_8e57_ad6d_da01ffebceb6 style d051d32d_e87d_7ea8_8c7b_34888e6adf2e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/AsciiStringCharacterTest.java lines 421–433
@Test
public void testIndexOf() {
AsciiString foo = AsciiString.of("This is a test");
int i1 = foo.indexOf(' ', 0);
assertEquals(4, i1);
int i2 = foo.indexOf(' ', i1 + 1);
assertEquals(7, i2);
int i3 = foo.indexOf(' ', i2 + 1);
assertEquals(9, i3);
assertTrue(i3 + 1 < foo.length());
int i4 = foo.indexOf(' ', i3 + 1);
assertEquals(i4, -1);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIndexOf() do?
testIndexOf() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/AsciiStringCharacterTest.java.
Where is testIndexOf() defined?
testIndexOf() is defined in common/src/test/java/io/netty/util/AsciiStringCharacterTest.java at line 421.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free