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

Class Approx1NullArgs

test/approx1.cpp:1013–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013class Approx1NullArgs : public ::testing::Test {
1014 protected:
1015 af_array out;
1016 af_array in;
1017 af_array pos;
1018
1019 Approx1NullArgs() : out(0), in(0), pos(0) {}
1020
1021 void SetUp() {
1022 SimpleTestData data;
1023
1024 ASSERT_SUCCESS(af_create_array(&in, &data.h_in.front(),
1025 data.in_dims.ndims(), data.in_dims.get(),
1026 f32));
1027 ASSERT_SUCCESS(af_create_array(&pos, &data.h_pos.front(),
1028 data.pos_dims.ndims(),
1029 data.pos_dims.get(), f32));
1030 }
1031
1032 void TearDown() {
1033 if (pos != 0) { ASSERT_SUCCESS(af_release_array(pos)); }
1034 if (in != 0) { ASSERT_SUCCESS(af_release_array(in)); }
1035 }
1036};
1037
1038TEST_F(Approx1NullArgs, NullOutputPtr) {
1039 af_array* out_ptr = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected