testLiteralWithIncrementalIndexingCompleteEviction() — netty Function Reference
Architecture documentation for the testLiteralWithIncrementalIndexingCompleteEviction() function in HpackDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6f4163f3_5cd1_3b11_4bbe_bd6a13aac54f["testLiteralWithIncrementalIndexingCompleteEviction()"] 499468ca_3853_024b_2b80_17090ef6cd43["HpackDecoderTest"] 6f4163f3_5cd1_3b11_4bbe_bd6a13aac54f -->|defined in| 499468ca_3853_024b_2b80_17090ef6cd43 47ac4151_0b50_9884_0d18_472d1c51065d["decode()"] 6f4163f3_5cd1_3b11_4bbe_bd6a13aac54f -->|calls| 47ac4151_0b50_9884_0d18_472d1c51065d style 6f4163f3_5cd1_3b11_4bbe_bd6a13aac54f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java lines 428–467
@Test
public void testLiteralWithIncrementalIndexingCompleteEviction() throws Http2Exception {
// Verify indexed host header
decode("4004" + hex("name") + "05" + hex("value"));
verify(mockHeaders).add(of("name"), of("value"));
verifyNoMoreInteractions(mockHeaders);
reset(mockHeaders);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 4096; i++) {
sb.append('a');
}
String value = sb.toString();
sb = new StringBuilder();
sb.append("417F811F");
for (int i = 0; i < 4096; i++) {
sb.append("61"); // 'a'
}
decode(sb.toString());
verify(mockHeaders).add(of(":authority"), of(value));
MockingDetails details = mockingDetails(mockHeaders);
for (Invocation invocation : details.getInvocations()) {
Method method = invocation.getMethod();
if ("authority".equals(method.getName())
&& invocation.getArguments().length == 0) {
invocation.markVerified();
} else if ("contains".equals(method.getName())
&& invocation.getArguments().length == 1
&& invocation.getArgument(0).equals(of(":authority"))) {
invocation.markVerified();
}
}
verifyNoMoreInteractions(mockHeaders);
reset(mockHeaders);
// Verify next header is inserted at index 62
decode("4004" + hex("name") + "05" + hex("value") + "BE");
verify(mockHeaders, times(2)).add(of("name"), of("value"));
verifyNoMoreInteractions(mockHeaders);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testLiteralWithIncrementalIndexingCompleteEviction() do?
testLiteralWithIncrementalIndexingCompleteEviction() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java.
Where is testLiteralWithIncrementalIndexingCompleteEviction() defined?
testLiteralWithIncrementalIndexingCompleteEviction() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java at line 428.
What does testLiteralWithIncrementalIndexingCompleteEviction() call?
testLiteralWithIncrementalIndexingCompleteEviction() 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