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

Function BOOST_AUTO_TEST_CASE

test/test_opencl_error.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "context_setup.hpp"
18
19BOOST_AUTO_TEST_CASE(error_to_string)
20{
21 using boost::compute::opencl_error;
22
23 BOOST_CHECK_EQUAL(opencl_error::to_string(CL_SUCCESS), "Success");
24 BOOST_CHECK_EQUAL(opencl_error::to_string(CL_INVALID_VALUE), "Invalid Value");
25 BOOST_CHECK_EQUAL(opencl_error::to_string(-123456), "Unknown OpenCL Error (-123456)");
26}
27
28BOOST_AUTO_TEST_CASE(error_code)
29{

Callers

nothing calls this directly

Calls 2

error_codeMethod · 0.80
error_stringMethod · 0.80

Tested by

no test coverage detected