Skip to content

Commit

Permalink
added noop test to cover more lines of code -- for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 21, 2020
1 parent 09bd626 commit c7aa9ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/test/trace/noop_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ TEST(NoopTest, UseNoopTracers)
s1->AddEvent("abc", attributes3);

s1->SetAttribute("abc", 4);

s1->AddEvent("abc") // add Empty

EXPECT_EQ(s1->IsRecording(), false);
}

0 comments on commit c7aa9ae

Please sign in to comment.