MCPcopy Create free account
hub / github.com/Tencent/rapidjson / main

Function main

test/unittest/unittest.cpp:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#endif
30
31int main(int argc, char **argv) {
32 ::testing::InitGoogleTest(&argc, argv);
33
34 std::cout << "RapidJSON v" << RAPIDJSON_VERSION_STRING << std::endl;
35
36#ifdef _MSC_VER
37 _CrtMemState memoryState = { 0 };
38 (void)memoryState;
39 _CrtMemCheckpoint(&memoryState);
40 //_CrtSetBreakAlloc(X);
41 //void *testWhetherMemoryLeakDetectionWorks = malloc(1);
42#endif
43
44 int ret = RUN_ALL_TESTS();
45
46#ifdef _MSC_VER
47 // Current gtest constantly leak 2 blocks at exit
48 _CrtMemDumpAllObjectsSince(&memoryState);
49#endif
50 return ret;
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected