Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libkineto/test/ApproximateClockTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ TEST(ApproximateClockTest, GetTimeIsPositiveAndAdvances) {

TEST(ApproximateClockTest, DefaultTimeConverterIsIdentity) {
auto& converter = get_time_converter();
converter = [](approx_time_t t) { return t; };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Digging into this, I think we should just remove this test entirely. get_time_converter() being the identity function is its initial state that we expect to be modified in:

get_time_converter() = clockConverter.makeConverter();
This test, then, is not actually testing anything useful.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scotts , I updated the PR header and removed the test case.

constexpr approx_time_t kTestValue = 123456789;
EXPECT_EQ(converter(kTestValue), static_cast<libkineto::time_t>(kTestValue));
}
Loading