MCPcopy Create free account
hub / github.com/NVIDIA/DALI / TEST

Function TEST

dali/c_api_2/data_objects_test.cc:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "dali/core/cuda_stream_pool.h"
26
27TEST(CAPI2_TensorListTest, NullHandle) {
28 daliTensorList_h h = nullptr;
29 int ref = 0;
30 EXPECT_EQ(DALI_ERROR_INVALID_HANDLE, daliTensorListIncRef(h, &ref));
31 EXPECT_EQ(DALI_ERROR_INVALID_HANDLE, daliTensorListDecRef(h, &ref));
32 EXPECT_EQ(DALI_ERROR_INVALID_HANDLE, daliTensorListRefCount(h, &ref));
33}
34
35TEST(CAPI2_TensorListTest, CreateDestroy) {
36 daliBufferPlacement_t placement{};

Callers

nothing calls this directly

Calls 15

daliTensorListIncRefFunction · 0.85
daliTensorListDecRefFunction · 0.85
daliTensorListRefCountFunction · 0.85
daliTensorListCreateFunction · 0.85
daliGetLastErrorMessageFunction · 0.85
volumeFunction · 0.85
MakeTestDeleterFunction · 0.85
CreateTensorListFunction · 0.85
make_cspanFunction · 0.85

Tested by

no test coverage detected