MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

Disruptor.Tests/UtilTests.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10BOOST_AUTO_TEST_SUITE(UtilTests)
11
12BOOST_AUTO_TEST_CASE(ShouldReturnNextPowerOfTwo)
13{
14 auto powerOfTwo = Util::ceilingNextPowerOfTwo(1000);
15
16 BOOST_CHECK_EQUAL(1024, powerOfTwo);
17}
18
19BOOST_AUTO_TEST_CASE(ShouldReturnExactPowerOfTwo)
20{

Callers

nothing calls this directly

Calls 2

ceilingNextPowerOfTwoFunction · 0.85
getMinimumSequenceFunction · 0.85

Tested by

no test coverage detected