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

Function BOOST_AUTO_TEST_CASE

test/test_context_error.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <boost/compute/exception/context_error.hpp>
16
17BOOST_AUTO_TEST_CASE(what)
18{
19 boost::compute::context context = boost::compute::system::default_context();
20 boost::compute::context_error error(&context, "Test", 0, 0);
21 BOOST_CHECK_EQUAL(std::string(error.what()), std::string("Test"));
22 BOOST_CHECK(*error.get_context_ptr() == context);
23 BOOST_CHECK(error.get_private_info_ptr() == 0);
24 BOOST_CHECK(error.get_private_info_size() == 0);
25}

Callers

nothing calls this directly

Calls 4

get_context_ptrMethod · 0.80
get_private_info_ptrMethod · 0.80
get_private_info_sizeMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected