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

Function TEST_F

test/ocl_ext_context.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88TEST_F(OCLExtContext, PushAndPop) {
89 int dCount = getDeviceCount();
90 info();
91
92 afcl::addDevice(deviceId, context, queue);
93 ASSERT_EQ(true, dCount + 1 == getDeviceCount());
94
95 afcl::deleteDevice(deviceId, context);
96 ASSERT_EQ(true, dCount == getDeviceCount());
97 info();
98}
99
100TEST_F(OCLExtContext, set) {
101 int dCount = getDeviceCount(); // Before user device addition

Callers

nothing calls this directly

Calls 8

infoFunction · 0.85
randuFunction · 0.85
constantFunction · 0.85
hostMethod · 0.80
getDeviceCountFunction · 0.50
addDeviceFunction · 0.50
deleteDeviceFunction · 0.50
setDeviceFunction · 0.50

Tested by

no test coverage detected