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

Function BOOST_AUTO_TEST_CASE

test/test_kernel.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace compute = boost::compute;
22
23BOOST_AUTO_TEST_CASE(name)
24{
25 compute::kernel foo = compute::kernel::create_with_source(
26 "__kernel void foo(int x) { }", "foo", context
27 );
28 BOOST_CHECK_EQUAL(foo.name(), "foo");
29
30 compute::kernel bar = compute::kernel::create_with_source(
31 "__kernel void bar(float x) { }", "bar", context
32 );
33 BOOST_CHECK_EQUAL(bar.name(), "bar");
34}
35
36BOOST_AUTO_TEST_CASE(arity)
37{

Callers

nothing calls this directly

Calls 7

arityMethod · 0.80
buildMethod · 0.80
create_kernelMethod · 0.80
nameMethod · 0.45
set_argMethod · 0.45
getMethod · 0.45
set_argsMethod · 0.45

Tested by

no test coverage detected