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

Method validateFormat

flow/Trace.cpp:1659–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659void TraceEventFields::validateFormat() const {
1660 if (g_network && g_network->isSimulated()) {
1661 for (Field field : fields) {
1662 if (!validateField(field.first.c_str(), false)) {
1663 fprintf(stderr,
1664 "Trace event detail name `%s' is invalid in:\n\t%s\n",
1665 field.first.c_str(),
1666 toString().c_str());
1667 }
1668 if (field.first == "Type" && !validateField(field.second.c_str(), true)) {
1669 fprintf(stderr, "Trace event detail Type `%s' is invalid\n", field.second.c_str());
1670 }
1671 }
1672 }
1673}
1674
1675std::string traceableStringToString(const char* value, size_t S) {
1676 if (g_network) {

Callers 1

actionMethod · 0.80

Calls 5

validateFieldFunction · 0.85
fprintfFunction · 0.85
toStringFunction · 0.70
isSimulatedMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected