MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TEST

Function TEST

tests/cpp/test_list.cc:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace tvm::ffi;
29
30TEST(List, Basic) {
31 List<int> list = {11, 12};
32 EXPECT_EQ(list.size(), 2U);
33 EXPECT_EQ(list[0], 11);
34 EXPECT_EQ(list[1], 12);
35}
36
37TEST(List, SharedMutation) {
38 List<int> list = {1, 2};

Callers

nothing calls this directly

Calls 15

GetListObjMethod · 0.80
StringClass · 0.50
AnyClass · 0.50
sizeMethod · 0.45
same_asMethod · 0.45
SetMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
eraseMethod · 0.45
pop_backMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected