mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 00:55:09 -07:00
[Tests] Give metrics_registry_test an explicit main
This commit is contained in:
parent
9fc0218be7
commit
a8151b9e97
1 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QList>
|
||||
#include <gtest/gtest.h>
|
||||
#include <metrics_registry.h>
|
||||
|
|
@ -72,4 +73,11 @@ TEST(MetricsRegistryTest, GameStartTrackedSeparatelyFromCommands)
|
|||
const auto snapshot = registry.getGameStartSnapshot();
|
||||
EXPECT_EQ(1, snapshot.count);
|
||||
EXPECT_EQ(120, snapshot.totalMs);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue