reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
488 M["a"] = 1; 489 M["b"] = 2; 490 M["c"] = 3; 492 EXPECT_EQ(3u, M.size()); 493 EXPECT_EQ(1, M.lookup("a")); 494 EXPECT_EQ(2, M.lookup("b")); 495 EXPECT_EQ(3, M.lookup("c")); 497 EXPECT_EQ(0, M.lookup("q")); 500 EXPECT_EQ(0, M.lookup("")); 501 EXPECT_EQ(0, M.lookup(StringRef())); 502 EXPECT_EQ(0, M.lookup(StringRef("a", 0))); 503 M[""] = 42; 504 EXPECT_EQ(42, M.lookup("")); 505 EXPECT_EQ(42, M.lookup(StringRef())); 506 EXPECT_EQ(42, M.lookup(StringRef("a", 0)));