gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
debug.test.cc File Reference
#include <gtest/gtest.h>
#include "base/debug.hh"

Go to the source code of this file.

Functions

 TEST (DebugFlagTest, NameDesc)
 Test assignment of names and descriptions. More...
 
 TEST (DebugFlagDeathTest, UniqueNames)
 Test that names are unique. More...
 
 TEST (DebugFlagTest, IsFormat)
 Test format attribute. More...
 
 TEST (DebugSimpleFlagTest, Enabled)
 Test enabling and disabling simple flags, as well as the global enabler. More...
 
 TEST (DebugCompoundFlagTest, Enabled)
 Tests that manipulate the enablement status of the compound flag to change the corresponding status of the kids. More...
 
 TEST (DebugFlagTest, ConversionOperator)
 Test that the conversion operator matches the enablement status. More...
 
 TEST (DebugCompoundFlagTest, EnabledKids)
 Tests that manipulate the kids to change the enablement status of the compound flag. More...
 
 TEST (DebugFlagTest, FindFlag)
 Search for existent and non-existent flags. More...
 
 TEST (DebugFlagTest, ChangeFlag)
 Test changing flag enabled. More...
 
 TEST (DebugFlagTest, SetClearDebugFlag)
 Test changing flag enabled with aux functions. More...
 
 TEST (DebugFlagTest, NoDumpDebugFlags)
 Test dumping no enabled debug flags. More...
 
 TEST (DebugFlagTest, DumpDebugFlags)
 Test dumping enabled debug flags with a larger set of flags. More...
 

Function Documentation

◆ TEST() [1/12]

TEST ( DebugCompoundFlagTest  ,
Enabled   
)

Tests that manipulate the enablement status of the compound flag to change the corresponding status of the kids.

Definition at line 104 of file debug.test.cc.

References Debug::SimpleFlag::enabled(), Debug::Flag::globalDisable(), and Debug::Flag::globalEnable().

◆ TEST() [2/12]

TEST ( DebugCompoundFlagTest  ,
EnabledKids   
)

Tests that manipulate the kids to change the enablement status of the compound flag.

Definition at line 154 of file debug.test.cc.

References Debug::SimpleFlag::disable(), Debug::SimpleFlag::enable(), Debug::SimpleFlag::enabled(), and Debug::Flag::globalEnable().

◆ TEST() [3/12]

TEST ( DebugFlagDeathTest  ,
UniqueNames   
)

Test that names are unique.

Definition at line 51 of file debug.test.cc.

References expected.

◆ TEST() [4/12]

TEST ( DebugFlagTest  ,
ChangeFlag   
)

Test changing flag enabled.

Definition at line 211 of file debug.test.cc.

References Debug::changeFlag(), Debug::SimpleFlag::enabled(), and Debug::Flag::globalEnable().

◆ TEST() [5/12]

TEST ( DebugFlagTest  ,
ConversionOperator   
)

Test that the conversion operator matches the enablement status.

Definition at line 139 of file debug.test.cc.

References Debug::SimpleFlag::disable(), Debug::SimpleFlag::enable(), Debug::SimpleFlag::enabled(), and Debug::Flag::globalEnable().

◆ TEST() [6/12]

TEST ( DebugFlagTest  ,
DumpDebugFlags   
)

Test dumping enabled debug flags with a larger set of flags.

Definition at line 277 of file debug.test.cc.

References dumpDebugFlags(), Debug::SimpleFlag::enable(), Debug::SimpleFlag::enabled(), Debug::Flag::globalEnable(), and output().

◆ TEST() [7/12]

TEST ( DebugFlagTest  ,
FindFlag   
)

Search for existent and non-existent flags.

Definition at line 188 of file debug.test.cc.

References Debug::Flag::enable(), Debug::SimpleFlag::enabled(), Debug::findFlag(), and Debug::Flag::globalEnable().

◆ TEST() [8/12]

TEST ( DebugFlagTest  ,
IsFormat   
)

Test format attribute.

Definition at line 64 of file debug.test.cc.

References Debug::SimpleFlag::isFormat().

◆ TEST() [9/12]

TEST ( DebugFlagTest  ,
NameDesc   
)

Test assignment of names and descriptions.

Definition at line 34 of file debug.test.cc.

References Debug::Flag::desc(), and Debug::Flag::name().

◆ TEST() [10/12]

TEST ( DebugFlagTest  ,
NoDumpDebugFlags   
)

Test dumping no enabled debug flags.

Definition at line 263 of file debug.test.cc.

References dumpDebugFlags(), Debug::SimpleFlag::enabled(), Debug::Flag::globalEnable(), and output().

◆ TEST() [11/12]

TEST ( DebugFlagTest  ,
SetClearDebugFlag   
)

Test changing flag enabled with aux functions.

Definition at line 237 of file debug.test.cc.

References clearDebugFlag(), Debug::SimpleFlag::enabled(), Debug::Flag::globalEnable(), and setDebugFlag().

◆ TEST() [12/12]

TEST ( DebugSimpleFlagTest  ,
Enabled   
)

Test enabling and disabling simple flags, as well as the global enabler.

Definition at line 75 of file debug.test.cc.

References Debug::SimpleFlag::disable(), Debug::SimpleFlag::enable(), Debug::SimpleFlag::enabled(), Debug::Flag::globalDisable(), and Debug::Flag::globalEnable().


Generated on Tue Mar 23 2021 19:41:31 for gem5 by doxygen 1.8.17