src/base/stats/info.test.cc
/**
 * Test that a name is properly assigned under the old style. The name map
 * must be checked to make sure it can resolved.
 */
Test that a name is properly assigned under the old style. The name map
must be checked to make sure it can resolved.
Test that a name is properly assigned under the old style . The name map must be checked to make sure it can resolved .
TEST(StatsInfoTest, NameOldStyle)
{
    TestInfo info;
    info.setName("InfoNameOldStyle", true);
    ASSERT_EQ(info.name, "InfoNameOldStyle");
    const auto &it = statistics::nameMap().find(info.name);
    ASSERT_NE(it, statistics::nameMap().cend());
    ASSERT_EQ(info.id, it->second->id);
}
TEST ( StatsInfoTest , NameOldStyle ) { TestInfo info ; info . setName ( " " , true ) ; ASSERT_EQ ( info . name , " " ) ; const auto & it = statistics :: nameMap ( ) . find ( info . name ) ; ASSERT_NE ( it , statistics :: nameMap ( ) . cend ( ) ) ; ASSERT_EQ ( info . id , it -> second -> id ) ; }
Test that a name is properly assigned under the old style.
Test that a name is properly assigned under the old style .