From e47889c96b8df46c4a77e8c5a3e2a9da5c872d18 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 7 Apr 2022 18:00:04 +0200 Subject: [PATCH] code coverage --- test/uvw/timer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/uvw/timer.cpp b/test/uvw/timer.cpp index 90cabf53..fc30245e 100644 --- a/test/uvw/timer.cpp +++ b/test/uvw/timer.cpp @@ -88,6 +88,15 @@ TEST(Timer, Again) { ASSERT_FALSE(checkErrorEvent); ASSERT_TRUE(checkTimerEvent); + + handle->close(); + + ASSERT_FALSE(handle->active()); + ASSERT_TRUE(handle->closing()); + + handle->start(uvw::timer_handle::time{0}, uvw::timer_handle::time{1}); + + ASSERT_TRUE(checkErrorEvent); } TEST(Timer, Repeat) {