testInvalidSpdySettingsFrameLength() — netty Function Reference
Architecture documentation for the testInvalidSpdySettingsFrameLength() function in SpdyFrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7bbecad4_1d57_521e_b47a_ff87eb66b551["testInvalidSpdySettingsFrameLength()"] 694e7f21_2c70_1029_2eab_f7afcf7a1d96["SpdyFrameDecoderTest"] 7bbecad4_1d57_521e_b47a_ff87eb66b551 -->|defined in| 694e7f21_2c70_1029_2eab_f7afcf7a1d96 22716287_5b34_da1d_c8e3_c9777b358484["encodeControlFrameHeader()"] 7bbecad4_1d57_521e_b47a_ff87eb66b551 -->|calls| 22716287_5b34_da1d_c8e3_c9777b358484 style 7bbecad4_1d57_521e_b47a_ff87eb66b551 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 783–806
@Test
public void testInvalidSpdySettingsFrameLength() throws Exception {
short type = 4;
byte flags = 0;
int numSettings = 2;
int length = 8 * numSettings + 8; // invalid length
byte idFlags = 0;
int id = RANDOM.nextInt() & 0x00FFFFFF;
int value = RANDOM.nextInt();
ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
encodeControlFrameHeader(buf, type, flags, length);
buf.writeInt(numSettings);
for (int i = 0; i < numSettings; i++) {
buf.writeByte(idFlags);
buf.writeMedium(id);
buf.writeInt(value);
}
decoder.decode(buf);
verify(delegate).readFrameError(anyString());
assertFalse(buf.isReadable());
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testInvalidSpdySettingsFrameLength() do?
testInvalidSpdySettingsFrameLength() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java.
Where is testInvalidSpdySettingsFrameLength() defined?
testInvalidSpdySettingsFrameLength() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java at line 783.
What does testInvalidSpdySettingsFrameLength() call?
testInvalidSpdySettingsFrameLength() calls 1 function(s): encodeControlFrameHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free