testFindNextPositivePowerOfTwo() — netty Function Reference
Architecture documentation for the testFindNextPositivePowerOfTwo() function in MathUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 152a2046_40e1_1ed4_5ab8_4b866664d6f1["testFindNextPositivePowerOfTwo()"] 8801dbff_d528_c70f_64c7_b01fe1bdbc22["MathUtilTest"] 152a2046_40e1_1ed4_5ab8_4b866664d6f1 -->|defined in| 8801dbff_d528_c70f_64c7_b01fe1bdbc22 style 152a2046_40e1_1ed4_5ab8_4b866664d6f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/MathUtilTest.java lines 27–37
@Test
public void testFindNextPositivePowerOfTwo() {
assertEquals(1, findNextPositivePowerOfTwo(0));
assertEquals(1, findNextPositivePowerOfTwo(1));
assertEquals(1024, findNextPositivePowerOfTwo(1000));
assertEquals(1024, findNextPositivePowerOfTwo(1023));
assertEquals(2048, findNextPositivePowerOfTwo(2048));
assertEquals(1 << 30, findNextPositivePowerOfTwo((1 << 30) - 1));
assertEquals(1, findNextPositivePowerOfTwo(-1));
assertEquals(1, findNextPositivePowerOfTwo(-10000));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFindNextPositivePowerOfTwo() do?
testFindNextPositivePowerOfTwo() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/MathUtilTest.java.
Where is testFindNextPositivePowerOfTwo() defined?
testFindNextPositivePowerOfTwo() is defined in common/src/test/java/io/netty/util/internal/MathUtilTest.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free