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

Function testPathFunction2

fdbmonitor/fdbmonitor.cpp:1231–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231int testPathFunction2(const char* name,
1232 std::function<std::string(std::string, bool)> fun,
1233 std::string a,
1234 bool x,
1235 std::string b) {
1236 std::string o = fun(a, x);
1237 bool r = b == o;
1238 printf("%s: %s(%s, %d) => %s expected %s\n", r ? "PASS" : "FAIL", name, a.c_str(), x, o.c_str(), b.c_str());
1239 return r ? 0 : 1;
1240}
1241
1242void testPathOps() {
1243 int errors = 0;

Callers 1

testPathOpsFunction · 0.70

Calls 2

printfFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected