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

Function BOOST_AUTO_TEST_CASE

test/test_no_device_found.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21BOOST_AUTO_TEST_CASE(what)
22{
23 try {
24 throw_no_device_found();
25
26 BOOST_REQUIRE(false); // should not get here
27 }
28 catch(boost::compute::no_device_found& e){
29 BOOST_CHECK_EQUAL(std::string(e.what()), "No OpenCL device found");
30 }
31}

Callers

nothing calls this directly

Calls 2

throw_no_device_foundFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected