| 114 | testNameGenerator); |
| 115 | |
| 116 | TEST_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 | |
| 139 | void testGeneralIndexOneArray(string pTestFile, const dim_t ndims, |
| 140 | af_index_t *indexs, int arrayDim) { |
nothing calls this directly
no test coverage detected