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

Function Y_UNIT_TEST

util/datetime/uptime_ut.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TestUptimeSuite) {
6 Y_UNIT_TEST(TestUptime) {
7 auto t1 = Uptime();
8 Sleep(TDuration::MilliSeconds(50)); // typical uptime resolution is 10-16 ms
9 auto t2 = Uptime();
10 UNIT_ASSERT(t2 > t1);
11 }
12} // Y_UNIT_TEST_SUITE(TestUptimeSuite)

Callers

nothing calls this directly

Calls 3

UptimeFunction · 0.85
SleepFunction · 0.85
MilliSecondsFunction · 0.85

Tested by

no test coverage detected