29#include <gtest/gtest-spi.h>
30#include <gtest/gtest.h>
45 ASSERT_EQ(unit->
getUnitString(), statistics::units::Tick::toString());
48TEST(StatsUnitsTest, Second)
84TEST(StatsUnitsTest, DegreeCelsius)
104 ASSERT_EQ(unit->getUnitString(),
"(Count/Count)");
105 ASSERT_EQ(unit->getUnitString(),
116 ASSERT_EQ(unit->getUnitString(),
"(Tick/Second)");
117 ASSERT_EQ(unit->getUnitString(),
122TEST(StatsUnitsTest, RateOfRates)
130 ASSERT_EQ(unit->
getUnitString(),
"((Bit/Second)/(Count/Cycle))");
141TEST(StatsUnitsTest, Unspecified)
static std::string toString()
std::string getUnitString() const override
std::string getUnitString() const override
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 DegreeCelsius * get()
static std::string toString()
std::string getUnitString() const override
static std::string toString()
static Rate< T1, T2 > * get()
std::string getUnitString() const override
static std::string toString()
std::string getUnitString() const override
std::string getUnitString() const override
static std::string toString()
std::string getUnitString() const override
static std::string toString()
std::string getUnitString() const override
static Unspecified * get()
std::string getUnitString() const override
static std::string toString()
static std::string toString()
std::string getUnitString() const override
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Tick
Tick count type.
TEST(StatsUnitsTest, Cycle)