forked from mirrors/qmk_userspace
[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
This commit is contained in:
parent
e2ab98f960
commit
962e4c0e18
20 changed files with 1011 additions and 41 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue