| 2069 | } |
| 2070 | |
| 2071 | void testKernelStringConstructor(void) |
| 2072 | { |
| 2073 | clCreateKernel_StubWithCallback(clCreateKernel_constructor); |
| 2074 | |
| 2075 | cl_int errorCode; |
| 2076 | cl::string kernelName("test"); |
| 2077 | cl::Program program(make_program(0)); |
| 2078 | cl::Kernel kernel(program, kernelName, &errorCode); |
| 2079 | TEST_ASSERT_EQUAL(kernel(), make_kernel(0)); |
| 2080 | TEST_ASSERT_EQUAL(errorCode, CL_SUCCESS); |
| 2081 | |
| 2082 | program() = nullptr; |
| 2083 | kernel() = nullptr; |
| 2084 | } |
| 2085 | |
| 2086 | void testKernelSetArgScalar(void) |
| 2087 | { |
nothing calls this directly
no test coverage detected