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

Function TEST_P

test/gen_index.cpp:116–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 testNameGenerator);
115
116TEST_P(IndexGeneralizedLegacy, SSSA) {
117 index_params params = GetParam();
118 if (noDoubleTests(get<1>(params))) return;
119 if (noHalfTests(get<1>(params))) return;
120
121 if (noDoubleTests(get<2>(params))) return;
122 if (noHalfTests(get<2>(params))) return;
123
124 af_array outArray = 0;
125 af_index_t indexes[4];
126 indexes[0].idx.seq = af_make_seq(0, 3, 1);
127 indexes[1].idx.seq = af_make_seq(0, 1, 1);
128 indexes[2].idx.seq = af_make_seq(1, 2, 1);
129 indexes[3].idx.arr = idxArray_;
130 indexes[0].isSeq = true;
131 indexes[1].isSeq = true;
132 indexes[2].isSeq = true;
133 indexes[3].isSeq = false;
134 ASSERT_SUCCESS(af_index_gen(&outArray, inArray_, 4, indexes));
135 ASSERT_ARRAYS_EQ(gold_, outArray);
136 af_release_array(outArray);
137}
138
139void testGeneralIndexOneArray(string pTestFile, const dim_t ndims,
140 af_index_t *indexs, int arrayDim) {

Callers

nothing calls this directly

Calls 5

noDoubleTestsFunction · 0.85
noHalfTestsFunction · 0.85
af_make_seqFunction · 0.50
af_index_genFunction · 0.50
af_release_arrayFunction · 0.50

Tested by

no test coverage detected