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

Function throwOnWrongMessage

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

Source from the content-addressed store, hash-verified

40}
41
42void throwOnWrongMessage(StatsdServer& server, const std::string& expected) {
43 auto actual = server.receive();
44 if (actual != expected) {
45 std::cerr << "Expected: " << expected << " but got: " << actual << std::endl;
46 throw std::runtime_error("Incorrect stat received");
47 }
48}
49
50void testErrorConditions() {
51 // Resolve a rubbish ip and make sure initialization failed

Callers 1

testReconfigureFunction · 0.85

Calls 1

receiveMethod · 0.80

Tested by

no test coverage detected