MCPcopy Create free account
hub / github.com/apple/foundationdb / testPathFunction

Function testPathFunction

fdbmonitor/fdbmonitor.cpp:1224–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222#endif
1223
1224int testPathFunction(const char* name, std::function<std::string(std::string)> fun, std::string a, std::string b) {
1225 std::string o = fun(a);
1226 bool r = b == o;
1227 printf("%s: %s(%s) = %s expected %s\n", r ? "PASS" : "FAIL", name, a.c_str(), o.c_str(), b.c_str());
1228 return r ? 0 : 1;
1229}
1230
1231int testPathFunction2(const char* name,
1232 std::function<std::string(std::string, bool)> fun,

Callers 1

testPathOpsFunction · 0.70

Calls 2

printfFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected