unknownParentShouldBeCreatedUnderConnection() — netty Function Reference
Architecture documentation for the unknownParentShouldBeCreatedUnderConnection() function in WeightedFairQueueByteDistributorDependencyTreeTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b68f161d_79a2_4a28_513e_8aa749b70625["unknownParentShouldBeCreatedUnderConnection()"] f59fdba5_c411_919e_8d09_ef11c6679e0d["WeightedFairQueueByteDistributorDependencyTreeTest"] b68f161d_79a2_4a28_513e_8aa749b70625 -->|defined in| f59fdba5_c411_919e_8d09_ef11c6679e0d 57fc268f_ff1d_75b5_06df_6fd94e9fd09c["setup()"] b68f161d_79a2_4a28_513e_8aa749b70625 -->|calls| 57fc268f_ff1d_75b5_06df_6fd94e9fd09c style b68f161d_79a2_4a28_513e_8aa749b70625 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java lines 952–979
@Test
public void unknownParentShouldBeCreatedUnderConnection() throws Exception {
setup(5);
// Purposefully avoid creating streamA's Http2Stream so that is it completely unknown.
// It shouldn't matter whether the ID is before or after streamB.id()
int streamAId = 1;
Http2Stream streamB = connection.local().createStream(3, false);
assertEquals(1, distributor.numChildren(connection.connectionStream().id()));
assertEquals(0, distributor.numChildren(streamB.id()));
// Build the tree
setPriority(streamB.id(), streamAId, DEFAULT_PRIORITY_WEIGHT, false);
assertEquals(1, connection.numActiveStreams());
// Level 0
assertEquals(1, distributor.numChildren(connection.connectionStream().id()));
// Level 1
assertTrue(distributor.isChild(streamAId, connection.connectionStream().id(), DEFAULT_PRIORITY_WEIGHT));
assertEquals(1, distributor.numChildren(streamAId));
// Level 2
assertTrue(distributor.isChild(streamB.id(), streamAId, DEFAULT_PRIORITY_WEIGHT));
assertEquals(0, distributor.numChildren(streamB.id()));
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does unknownParentShouldBeCreatedUnderConnection() do?
unknownParentShouldBeCreatedUnderConnection() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java.
Where is unknownParentShouldBeCreatedUnderConnection() defined?
unknownParentShouldBeCreatedUnderConnection() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java at line 952.
What does unknownParentShouldBeCreatedUnderConnection() call?
unknownParentShouldBeCreatedUnderConnection() calls 1 function(s): setup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free