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

Function BOOST_AUTO_TEST_CASE

compute/test/test_extrema.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace compute = boost::compute;
38
39BOOST_AUTO_TEST_CASE(empyt_min)
40{
41 using boost::compute::int_;
42
43 boost::compute::vector<int_> vector(size_t(16), int_(0), queue);
44 boost::compute::vector<int_>::iterator min_iter =
45 boost::compute::min_element(vector.begin(), vector.begin(), queue);
46 BOOST_CHECK(min_iter == vector.begin());
47
48 min_iter =
49 boost::compute::min_element(vector.begin(), vector.begin() + 1, queue);
50 BOOST_CHECK(min_iter == vector.begin());
51}
52
53BOOST_AUTO_TEST_CASE(int_min_max)
54{

Callers

nothing calls this directly

Calls 15

min_elementFunction · 0.85
iotaFunction · 0.85
max_elementFunction · 0.85
minmax_elementFunction · 0.85
find_extrema_on_cpuFunction · 0.85
is_apple_cpu_deviceFunction · 0.85
find_extrema_with_reduceFunction · 0.85
make_transform_iteratorFunction · 0.85
push_backMethod · 0.80
fillFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected