MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / TEST

Function TEST

test/ycbcr_rgb.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using std::vector;
22
23TEST(ycbcr_rgb, InvalidArray) {
24 vector<float> in(100, 1);
25
26 dim4 dims(100);
27 array input(dims, &(in.front()));
28
29 try {
30 array output = hsv2rgb(input);
31 ASSERT_EQ(true, false);
32 } catch (const af::exception &ex) {
33 ASSERT_EQ(true, true);
34 return;
35 }
36}
37
38TEST(ycbcr2rgb, CPP) {
39 vector<dim4> numDims;

Callers

nothing calls this directly

Calls 7

ycbcr2rgbFunction · 0.85
rgb2ycbcrFunction · 0.85
hostMethod · 0.80
hsv2rgbFunction · 0.50
tileFunction · 0.50
elementsMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected