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

Function convertToTestType

fdbrpc/ReplicationUtils.cpp:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444repTestType convertToTestType(int iValue) {
445 std::string sValue;
446 char cValue;
447 do {
448 cValue = char(int('A') + (iValue % 26));
449 sValue += std::string(1, cValue);
450 iValue /= 26;
451 } while (iValue > 0);
452 return sValue;
453}
454
455Reference<LocalitySet> createTestLocalityMap(std::vector<repTestType>& indexes,
456 int dcTotal,

Callers 1

createTestLocalityMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected