LCOV - code coverage report
Current view: top level - unit_tests/tests/util - test_timer.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 9 9 100.0 %
Date: 2024-04-25 02:23:43 Functions: 4 4 100.0 %

          Line data    Source code
       1             : #include "pch.h"
       2             : #include <rusefi/timer.h>
       3             : 
       4           4 : TEST(util, timer) {
       5           1 :         EngineTestHelper eth(engine_type_e::TEST_ENGINE);
       6           1 :         Timer timer;
       7           1 :         ASSERT_TRUE(timer.hasElapsedSec(3));
       8           1 :         timer.reset();
       9           1 :         ASSERT_FALSE(timer.hasElapsedSec(3));
      10             : 
      11           1 :         eth.moveTimeForwardSec(4);
      12           1 :         ASSERT_TRUE(timer.hasElapsedSec(3));
      13           1 : }

Generated by: LCOV version 1.14