Skip to content

Commit

Permalink
test: update test_util.cc for coverage
Browse files Browse the repository at this point in the history
update test_util.cc for code coverage src/util-inl.h:PopFront()

PR-URL: nodejs#55291
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
kmk324 authored and louwers committed Nov 2, 2024
1 parent c2f68fb commit 3565fb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cctest/test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ TEST_F(UtilTest, ListHead) {

List list;
EXPECT_TRUE(list.IsEmpty());
EXPECT_TRUE(list.PopFront() == nullptr);

Item one;
EXPECT_TRUE(one.node_.IsEmpty());
Expand Down

0 comments on commit 3565fb4

Please sign in to comment.