increaseTick();
}
+#if TRACING_ON
/**
* Test whether getting the result in a different tick triggers an assertion.
*/
increaseTick();
ASSERT_DEATH(stor.result(), ".+");
}
+#endif
/**
* Test whether getting the result in a different tick does not trigger an
ASSERT_FALSE(stor.zero());
}
+#if TRACING_ON
/** Test that an assertion is thrown when bucket size is 0. */
TEST(StatsDistStorDeathTest, BucketSize0)
{
EXPECT_ANY_THROW(Stats::DistStor::Params params(0, 5, 0));
testing::internal::GetCapturedStderr();
}
+#endif
/**
* Test whether zero is correctly set as the reset value. The test order is
checkExpectedDistData(data, expected_data, true);
}
+#if TRACING_ON
/** Test that an assertion is thrown when not enough buckets are provided. */
TEST(StatsHistStorDeathTest, NotEnoughBuckets0)
{
EXPECT_ANY_THROW(Stats::HistStor::Params params(1));
testing::internal::GetCapturedStderr();
}
+#endif
/**
* Test whether zero is correctly set as the reset value. The test order is
prepareCheckHistStor(params, values, 0, expected_data);
}
+#if TRACING_ON
/** Test whether adding storages with different sizes triggers an assertion. */
TEST(StatsHistStorDeathTest, AddDifferentSize)
{
ASSERT_DEATH(stor.add(&stor2), ".+");
}
+#endif
/** Test merging two histograms. */
TEST(StatsHistStorTest, Add)