| 154 | |
| 155 | template<typename T> |
| 156 | void IdentityCPPError() { |
| 157 | SUPPORTED_TYPE_CHECK(T); |
| 158 | |
| 159 | static const int num = 1000; |
| 160 | dtype dty = (dtype)dtype_traits<T>::af_type; |
| 161 | try { |
| 162 | array out = identity(num, 0, 10, dty); |
| 163 | } catch (const exception &ex) { |
| 164 | FAIL() << "Incorrectly thrown 0-length exception"; |
| 165 | return; |
| 166 | } |
| 167 | SUCCEED(); |
| 168 | } |
| 169 | |
| 170 | TYPED_TEST(Constant, basicCPP) { ConstantCPPCheck<TypeParam>(TypeParam(5)); } |
| 171 |
nothing calls this directly
no test coverage detected