MCPcopy Create free account
hub / github.com/cpputest/cpputest / encodeFileName

Method encodeFileName

src/CppUTest/JUnitTestOutput.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161SimpleString JUnitTestOutput::encodeFileName(const SimpleString& fileName)
162{
163 // special character list based on: https://en.wikipedia.org/wiki/Filename
164 static const char* const forbiddenCharacters = "/\\?%*:|\"<>";
165
166 SimpleString result = fileName;
167 for (const char* sym = forbiddenCharacters; *sym; ++sym) {
168 result.replace(*sym, '_');
169 }
170 return result;
171}
172
173void JUnitTestOutput::setPackageName(const SimpleString& package)
174{

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected