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

Function TEST_P

test/reduce.cpp:582–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 testNameGenerator<ReduceByKeyP>);
581
582TEST_P(ReduceByKeyP, SumDim0) {
583 if (noHalfTests(GetParam()->vType_)) {
584 GTEST_SKIP() << "Half not supported on this device";
585 }
586 if (noHalfTests(GetParam()->kType_)) {
587 GTEST_SKIP() << "Half not supported on this device";
588 }
589 if (noDoubleTests(GetParam()->vType_)) {
590 GTEST_SKIP() << "Double not supported on this device";
591 }
592 array keyRes, valsReduced;
593 sumByKey(keyRes, valsReduced, keys, vals, 0, 0);
594
595 ASSERT_ARRAYS_EQ(keyResGold, keyRes);
596 ASSERT_ARRAYS_NEAR(valsReducedGold, valsReduced, 1e-5);
597}
598
599TEST_P(ReduceByKeyP, SumDim2) {
600 if (noHalfTests(GetParam()->vType_)) {

Callers

nothing calls this directly

Calls 11

noHalfTestsFunction · 0.85
noDoubleTestsFunction · 0.85
sumByKeyFunction · 0.85
constantFunction · 0.85
powFunction · 0.85
productFunction · 0.85
isinfFunction · 0.70
maxFunction · 0.70
tileFunction · 0.50
reorderFunction · 0.50
sumFunction · 0.50

Tested by

no test coverage detected