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

Function main

POSIX/demo/process.cpp:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int main() {
59 locale::global(locale(""));
60 wcout.imbue(locale(""));
61 char c;
62 srand((uint64_t) &c);
63
64 string rootDir = "/tmp/mmkv";
65 MMKV::initializeMMKV(rootDir);
66
67 auto processID = getpid();
68 cout << processID << ": started\n";
69
70 for (size_t index = 0; index < keyCount; index++) {
71 arrIntKeys.push_back("int-" + to_string(index));
72 arrStringKeys.push_back("string-" + to_string(index));
73 }
74 brutleTest(processID);
75
76 cout << processID << ": ended\n";
77 return 0;
78}

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.70
brutleTestFunction · 0.70

Tested by

no test coverage detected