MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / trimname

Function trimname

test/scripts/extracttests.py:173–179  ·  view source on GitHub ↗

Trim test name. Trailing underscore and digits are removed

(name)

Source from the content-addressed store, hash-verified

171
172
173def trimname(name):
174 """Trim test name. Trailing underscore and digits are removed"""
175 while name[-1].isdigit():
176 name = name[:-1]
177 if name[-1] == '_':
178 name = name[:-1]
179 return name
180
181
182def writeHtmlFile(nodes, functionName, filename, errorsOnly):

Callers 2

writeHtmlFileFunction · 0.85
extracttests.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected