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

Function TYPED_TEST

test/meanshift.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35TYPED_TEST_SUITE(Meanshift, TestTypes);
36
37TYPED_TEST(Meanshift, InvalidArgs) {
38 SUPPORTED_TYPE_CHECK(TypeParam);
39
40 vector<TypeParam> in(100, 1);
41
42 af_array inArray = 0;
43 af_array outArray = 0;
44
45 dim4 dims = dim4(100, 1, 1, 1);
46 ASSERT_SUCCESS(af_create_array(&inArray, &in.front(), dims.ndims(),
47 dims.get(),
48 (af_dtype)dtype_traits<TypeParam>::af_type));
49 ASSERT_EQ(AF_ERR_SIZE,
50 af_mean_shift(&outArray, inArray, 0.12f, 0.34f, 5, true));
51 ASSERT_SUCCESS(af_release_array(inArray));
52}
53
54template<typename T, bool isColor>
55void meanshiftTest(string pTestFile, const float ss) {

Callers

nothing calls this directly

Calls 6

dim4Class · 0.50
af_create_arrayFunction · 0.50
af_mean_shiftFunction · 0.50
af_release_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected