Go to the documentation of this file.
29 #include <gtest/gtest-spi.h>
30 #include <gtest/gtest.h>
36 TEST(StatsUnitsTest, Cycle)
48 TEST(StatsUnitsTest, Second)
72 TEST(StatsUnitsTest, Joule)
84 TEST(StatsUnitsTest, DegreeCelsius)
92 TEST(StatsUnitsTest, Count)
98 TEST(StatsUnitsTest, Rate1)
104 ASSERT_EQ(unit->getUnitString(),
"(Count/Count)");
105 ASSERT_EQ(unit->getUnitString(),
116 ASSERT_EQ(unit->getUnitString(),
"(Tick/Second)");
117 ASSERT_EQ(unit->getUnitString(),
122 TEST(StatsUnitsTest, RateOfRates)
130 ASSERT_EQ(unit->
getUnitString(),
"((Bit/Second)/(Count/Cycle))");
141 TEST(StatsUnitsTest, Unspecified)
static std::string toString()
static std::string toString()
std::string getUnitString() const override
static std::string toString()
static std::string toString()
std::string getUnitString() const override
std::string getUnitString() const override
static Rate< T1, T2 > * get()
static Unspecified * get()
std::string getUnitString() const override
static std::string toString()
static std::string toString()
static std::string toString()
static std::string toString()
uint64_t Tick
Tick count type.
std::string getUnitString() const override
std::string getUnitString() const override
static std::string toString()
std::string getUnitString() const override
std::string getUnitString() const override
std::string getUnitString() const override
std::string getUnitString() const override
static std::string toString()
TEST(StatsUnitsTest, Cycle)
std::string getUnitString() const override
static DegreeCelsius * get()
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
static std::string toString()
std::string getUnitString() const override
static std::string toString()
std::string getUnitString() const override
Generated on Wed May 4 2022 12:13:52 for gem5 by doxygen 1.8.17