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

Method SetUp

test/reduce.cpp:433–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431 array keyResGold, valsReducedGold;
432
433 void SetUp() {
434 reduce_by_key_params *params = GetParam();
435 if (noHalfTests(params->vType_)) {
436 GTEST_SKIP() << "Half not supported on this device";
437 }
438 if (noDoubleTests(GetParam()->vType_)) {
439 GTEST_SKIP() << "Double not supported on this device";
440 }
441
442 keys = ptrToArray(params->iSize, params->iKeys_, params->kType_);
443 vals = ptrToArray(params->iSize, params->iVals_, params->vType_);
444
445 keyResGold = ptrToArray(params->oSize, params->oKeys_, params->kType_);
446 valsReducedGold =
447 ptrToArray(params->oSize, params->oVals_, params->oType_);
448 }
449
450 void TearDown() { delete GetParam(); }
451};

Callers

nothing calls this directly

Calls 3

noHalfTestsFunction · 0.85
noDoubleTestsFunction · 0.85
ptrToArrayFunction · 0.85

Tested by

no test coverage detected