src/base/stats/info.test.cc
/**
 * @todo Test the behavior when set name is called twice on the same old-style
 * info. Should it be allowed? If so, the old name should be removed from the
 * name map.
 */
@todo Test the behavior when set name is called twice on the same old-style
info. Should it be allowed. If so, the old name should be removed from the
name map.
@todo Test the behavior when set name is called twice on the same old - style info . Should it be allowed . If so the old name should be removed from the name map .
TEST(StatsInfoTest, DISABLED_NameOldStyleTwice)
{
    TestInfo info;
    std::string old_name = "InfoNameOldStyleTwice";
    info.setName(old_name, true);
    info.setName("InfoNameOldStyleTwice2", true);
    ASSERT_EQ(info.name, "InfoNameOldStyleTwice2");
    const auto &it = statistics::nameMap().find(old_name);
    ASSERT_EQ(it, statistics::nameMap().cend());
}
TEST ( StatsInfoTest , DISABLED_NameOldStyleTwice ) { TestInfo info ; std :: string old_name = " " ; info . setName ( old_name , true ) ; info . setName ( " " , true ) ; ASSERT_EQ ( info . name , " " ) ; const auto & it = statistics :: nameMap ( ) . find ( old_name ) ; ASSERT_EQ ( it , statistics :: nameMap ( ) . cend ( ) ) ; }
@todo Test the behavior when set name is called twice on the same old-style
 info.
@todo Test the behavior when set name is called twice on the same old - style info .