MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / main

Function main

tests/support/main.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <ctime>
24
25int main(int argc, char **argv) {
26 agi::dispatch::Init([](agi::dispatch::Thunk) { });
27 agi::util::InitLocale();
28
29 agi::log::log = new agi::log::LogSink;
30 agi::log::log->Subscribe(std::make_unique<agi::log::JsonEmitter>("./"));
31 ::testing::InitGoogleTest(&argc, argv);
32
33 srand(time(nullptr));
34
35 int retval = RUN_ALL_TESTS();
36
37 delete agi::log::log;
38
39 return retval;
40}
41

Callers

nothing calls this directly

Calls 3

InitFunction · 0.85
InitLocaleFunction · 0.85
SubscribeMethod · 0.45

Tested by

no test coverage detected