MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / main

Function main

deps/cpp-statsd-client/tests/testStatsdClient.cpp:169–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int main() {
170 // If any of these tests fail they throw an exception, not catching makes for a nonzero return code
171
172 // general things that should be errors
173 testErrorConditions();
174 // reconfiguring how you are sending
175 testReconfigure();
176 // no batching
177 testSendRecv(0, 0);
178 // background batching
179 testSendRecv(32, 1000);
180 // manual flushing of batches
181 testSendRecv(16, 0);
182
183 return EXIT_SUCCESS;
184}

Callers

nothing calls this directly

Calls 3

testErrorConditionsFunction · 0.85
testReconfigureFunction · 0.85
testSendRecvFunction · 0.85

Tested by

no test coverage detected