MCPcopy Create free account
hub / github.com/boostorg/compute / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/test_dynamic_bitset.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace compute = boost::compute;
21
22BOOST_AUTO_TEST_CASE(set_and_test)
23{
24 compute::dynamic_bitset<> bits(1024, queue);
25
26 bits.set(1, queue);
27 BOOST_CHECK(bits.test(1, queue) == true);
28 BOOST_CHECK(bits.test(2, queue) == false);
29
30 bits.set(1, false, queue);
31 BOOST_CHECK(bits.test(1, queue) == false);
32 BOOST_CHECK(bits.test(2, queue) == false);
33}
34
35BOOST_AUTO_TEST_CASE(count)
36{

Callers

nothing calls this directly

Calls 9

testMethod · 0.80
resetMethod · 0.80
anyMethod · 0.80
noneMethod · 0.80
setMethod · 0.45
countMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected