gem5 v24.0.0.0
|
Go to the source code of this file.
Classes | |
class | TestInfo |
Functions | |
TEST (StatsInfoTest, NameNewStyle) | |
Test that a name is properly assigned under the new style. | |
TEST (StatsInfoTest, NameFirstCharacter) | |
Test that the first character accepts alpha and underscore. | |
TEST (StatsInfoTest, NameOtherCharacters) | |
Test that the non-first characters accept alpha-numeric and underscore. | |
TEST (StatsInfoTest, NameOldStyle) | |
Test that a name is properly assigned under the old style. | |
TEST (StatsInfoTest, DISABLED_NameOldStyleTwice) | |
TEST (StatsInfoTest, NameNewStyleDuplicate) | |
Test that a name can be duplicated when using the new styles. | |
TEST (StatsInfoTest, NameMixStyleDuplicate) | |
Test that a name can be duplicated when mixing styles. | |
TEST (StatsInfoTest, Separator) | |
Test changing the separator. | |
TEST (StatsInfoTest, Less) | |
Test changing the less operation, which is applied on the name. | |
TEST (StatsInfoTest, BaseCheckInit) | |
Test that checking Info after setting the init flag succeeds. | |
TEST (StatsInfoTest, BaseCheckDisplay) | |
Test that checking Info for display after setting the name succeeds. | |
TEST (StatsInfoTest, LessSub) | |
Test changing the less operation, which is applied on the name (sub-groups). | |
TEST (StatsInfoDeathTest, NameEmpty) | |
Test that a name cannot be empty. | |
TEST (StatsInfoDeathTest, NameSubEmpty) | |
Test that a sub-group's name cannot be empty. | |
TEST (StatsInfoDeathTest, NameSubEmpty2) | |
Test that a sub-group's name cannot be empty. | |
TEST (StatsInfoDeathTest, NameSubEmpty3) | |
Test that a sub-group's name cannot be empty. | |
TEST (StatsInfoDeathTest, NameFirstCharacterNumber) | |
Test that the first character does not accept numbers. | |
TEST (StatsInfoDeathTest, NameFirstCharacterNumberSub) | |
Test that the first character does not accept numbers (sub-group). | |
TEST (StatsInfoDeathTest, NameFirstCharacterSpecial) | |
Test that the first character does not accept special characters. | |
TEST (StatsInfoDeathTest, NameFirstCharacterSpecialSub) | |
Test that the first character does not accept special characters (sub-group). | |
TEST (StatsInfoDeathTest, NameOtherCharacterSpecial) | |
Test that the non-first characters do not accept special characters. | |
TEST (StatsInfoDeathTest, NameOldStyleDuplicate) | |
Test that a name cannot be duplicated under the old style. | |
TEST (StatsInfoDeathTest, BaseCheckNoInit) | |
Test that checking Info without setting the init flag fails. | |
TEST (StatsInfoDeathTest, BaseCheckDisplayNoName) | |
Test that checking Info for display without setting the name fails. | |
TEST | ( | StatsInfoDeathTest | , |
BaseCheckDisplayNoName | ) |
Test that checking Info for display without setting the name fails.
Definition at line 317 of file info.test.cc.
References gem5::statistics::Info::baseCheck(), gem5::statistics::display, gem5::statistics::Info::flags, gem5::statistics::init, and gem5::Flags< T >::set().
TEST | ( | StatsInfoDeathTest | , |
BaseCheckNoInit | ) |
Test that checking Info without setting the init flag fails.
Definition at line 310 of file info.test.cc.
References gem5::statistics::Info::baseCheck().
TEST | ( | StatsInfoDeathTest | , |
NameEmpty | ) |
Test that a name cannot be empty.
Definition at line 232 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameFirstCharacterNumber | ) |
Test that the first character does not accept numbers.
Definition at line 260 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameFirstCharacterNumberSub | ) |
Test that the first character does not accept numbers (sub-group).
Definition at line 267 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameFirstCharacterSpecial | ) |
Test that the first character does not accept special characters.
Definition at line 274 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameFirstCharacterSpecialSub | ) |
Test that the first character does not accept special characters (sub-group).
Definition at line 284 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameOldStyleDuplicate | ) |
Test that a name cannot be duplicated under the old style.
Definition at line 298 of file info.test.cc.
References gem5::statistics::Info::name, name(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameOtherCharacterSpecial | ) |
Test that the non-first characters do not accept special characters.
Definition at line 291 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameSubEmpty | ) |
Test that a sub-group's name cannot be empty.
Definition at line 239 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameSubEmpty2 | ) |
Test that a sub-group's name cannot be empty.
Definition at line 246 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoDeathTest | , |
NameSubEmpty3 | ) |
Test that a sub-group's name cannot be empty.
Definition at line 253 of file info.test.cc.
References gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
BaseCheckDisplay | ) |
Test that checking Info for display after setting the name succeeds.
Definition at line 209 of file info.test.cc.
References gem5::statistics::Info::baseCheck(), gem5::statistics::display, gem5::statistics::Info::flags, gem5::statistics::init, gem5::Flags< T >::set(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
BaseCheckInit | ) |
Test that checking Info after setting the init flag succeeds.
Definition at line 201 of file info.test.cc.
References gem5::statistics::Info::baseCheck(), gem5::statistics::Info::flags, gem5::statistics::init, and gem5::Flags< T >::set().
TEST | ( | StatsInfoTest | , |
DISABLED_NameOldStyleTwice | ) |
Definition at line 126 of file info.test.cc.
References gem5::statistics::Info::name, gem5::statistics::nameMap(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
Less | ) |
Test changing the less operation, which is applied on the name.
Definition at line 189 of file info.test.cc.
References gem5::statistics::Info::less(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
LessSub | ) |
Test changing the less operation, which is applied on the name (sub-groups).
Definition at line 220 of file info.test.cc.
References gem5::statistics::Info::less(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameFirstCharacter | ) |
Test that the first character accepts alpha and underscore.
Definition at line 59 of file info.test.cc.
References gem5::statistics::Info::name, and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameMixStyleDuplicate | ) |
Test that a name can be duplicated when mixing styles.
Duplicating is not a problem that must be solved by Info in this case. The stats name resolver does that.
Definition at line 160 of file info.test.cc.
References gem5::statistics::Info::name, name(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameNewStyle | ) |
Test that a name is properly assigned under the new style.
Definition at line 51 of file info.test.cc.
References gem5::statistics::Info::name, and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameNewStyleDuplicate | ) |
Test that a name can be duplicated when using the new styles.
Duplicating is not a problem that must be solved by Info in this case. The stats name resolver does that.
Definition at line 143 of file info.test.cc.
References gem5::statistics::Info::name, name(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameOldStyle | ) |
Test that a name is properly assigned under the old style.
The name map must be checked to make sure it can resolved.
Definition at line 110 of file info.test.cc.
References gem5::statistics::Info::id, gem5::statistics::Info::name, gem5::statistics::nameMap(), and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
NameOtherCharacters | ) |
Test that the non-first characters accept alpha-numeric and underscore.
Definition at line 83 of file info.test.cc.
References gem5::statistics::Info::name, and gem5::statistics::Info::setName().
TEST | ( | StatsInfoTest | , |
Separator | ) |
Test changing the separator.
Definition at line 173 of file info.test.cc.
References gem5::statistics::Info::separatorString, and gem5::statistics::Info::setSeparator().