MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

compute/test/test_generate.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace bc = boost::compute;
27
28BOOST_AUTO_TEST_CASE(generate4)
29{
30 bc::vector<int> vector(4, context);
31 bc::fill(vector.begin(), vector.end(), 2, queue);
32 CHECK_RANGE_EQUAL(int, 4, vector, (2, 2, 2, 2));
33
34 BOOST_COMPUTE_FUNCTION(int, ret4, (void),
35 {
36 return 4;
37 });
38
39 bc::generate(vector.begin(), vector.end(), ret4, queue);
40 CHECK_RANGE_EQUAL(int, 4, vector, (4, 4, 4, 4));
41}
42
43BOOST_AUTO_TEST_CASE(generate_pair)
44{

Callers

nothing calls this directly

Calls 8

bug_in_struct_assignmentFunction · 0.85
copyFunction · 0.85
make_pairFunction · 0.85
BOOST_COMPUTE_FUNCTIONFunction · 0.70
fillFunction · 0.50
generateFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected