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

Function IdentityCPPError

test/constant.cpp:156–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155template<typename T>
156void 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
170TYPED_TEST(Constant, basicCPP) { ConstantCPPCheck<TypeParam>(TypeParam(5)); }
171

Callers

nothing calls this directly

Calls 1

identityFunction · 0.50

Tested by

no test coverage detected