[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
This commit is contained in:
@@ -25,11 +25,13 @@ class TestLogger : public std::ostream {
|
||||
TestLogger& info();
|
||||
TestLogger& trace();
|
||||
TestLogger& error();
|
||||
void print_log();
|
||||
void reset();
|
||||
void print_log();
|
||||
void print_header();
|
||||
void reset();
|
||||
|
||||
private:
|
||||
TestLogger& timestamp();
|
||||
std::stringbuf m_log;
|
||||
};
|
||||
|
||||
extern TestLogger test_logger;
|
||||
extern TestLogger test_logger;
|
||||
|
Reference in New Issue
Block a user