MCPcopy Create free account
hub / github.com/catboost/catboost / Y_UNIT_TEST

Function Y_UNIT_TEST

util/datetime/cputimer_ut.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TestCpuTimerSuite) {
6 Y_UNIT_TEST(TestCyclesToDurationSafe) {
7 ui64 cycles = DurationToCyclesSafe(TDuration::Hours(24));
8 UNIT_ASSERT_VALUES_EQUAL(24, CyclesToDurationSafe(cycles).Hours());
9 }
10} // Y_UNIT_TEST_SUITE(TestCpuTimerSuite)

Callers

nothing calls this directly

Calls 4

DurationToCyclesSafeFunction · 0.85
CyclesToDurationSafeFunction · 0.85
HoursFunction · 0.50
HoursMethod · 0.45

Tested by

no test coverage detected