Lines Matching refs:fm
50 FruitMap fm; in TEST() local
52 EXPECT_NULL(fm.Get(FruitMap::Apple)); in TEST()
53 EXPECT_FALSE(fm.Exists(FruitMap::Apple)); in TEST()
54 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
55 EXPECT_FALSE(fm.Exists(FruitMap::Orange)); in TEST()
57 fm.Set(FruitMap::Apple, 1); in TEST()
58 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
59 EXPECT_EQ(1, *fm.Get(FruitMap::Apple)); in TEST()
60 EXPECT_TRUE(fm.Exists(FruitMap::Apple)); in TEST()
62 fm.Set(FruitMap::Apple, 5); in TEST()
63 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
64 EXPECT_EQ(5, *fm.Get(FruitMap::Apple)); in TEST()
65 EXPECT_TRUE(fm.Exists(FruitMap::Apple)); in TEST()
67 fm.Set(FruitMap::Orange, 555.0); in TEST()
68 EXPECT_EQ(5, *fm.Get(FruitMap::Apple)); in TEST()
69 EXPECT_DOUBLE_EQ(555.0, *fm.Get(FruitMap::Orange)); in TEST()
70 EXPECT_EQ(size_t(2), fm.Size()); in TEST()
73 fm.Remove(FruitMap::Apple); in TEST()
74 EXPECT_FALSE(fm.Exists(FruitMap::Apple)); in TEST()
76 fm.Clear(); in TEST()
77 EXPECT_EQ(size_t(0), fm.Size()); in TEST()
78 EXPECT_FALSE(fm.Exists(FruitMap::Orange)); in TEST()
82 FruitMap fm; in TEST() local
85 fm.Set(FruitMap::Label, std::string("hello_world")); in TEST()
86 auto* ptr = fm.Get(FruitMap::Label); in TEST()
92 fm.Set(FruitMap::Label, *ptr); in TEST()
94 auto* new_ptr = fm.Get(FruitMap::Label); in TEST()
175 FruitMap fm(FruitMap::Apple, 12345); in TEST() local
178 int apple = fm.GetOrDefault(FruitMap::Apple); in TEST()
182 EXPECT_EQ(size_t(1), fm.Size()); in TEST()
185 double orange = fm.GetOrDefault(FruitMap::Orange); in TEST()