MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/lib/gtl/flatmap_test.cc:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64TEST(FlatMapTest, Find) {
65 NumMap map;
66 EXPECT_EQ(Get(map, 1), -1);
67 map.insert({1, 100});
68 map.insert({2, 200});
69 EXPECT_EQ(Get(map, 1), 100);
70 EXPECT_EQ(Get(map, 2), 200);
71 EXPECT_EQ(Get(map, 3), -1);
72}
73
74TEST(FlatMapTest, Insert) {
75 NumMap map;

Callers

nothing calls this directly

Calls 15

GetFunction · 0.85
FillFunction · 0.70
ContentsFunction · 0.70
NAClass · 0.70
CustomCmpKeyClass · 0.70
MakeUniqFunction · 0.70
insertMethod · 0.45
sizeMethod · 0.45
emplaceMethod · 0.45
emptyMethod · 0.45
countMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected