MCPcopy Index your code
hub / github.com/cpplint/cpplint / RemoveIfPresent

Method RemoveIfPresent

cpplint_unittest.py:99–103  ·  view source on GitHub ↗
(self, substr)

Source from the content-addressed store, hash-verified

97 sys.exit('FATAL ERROR: There are no tests for category "%s"' % category)
98
99 def RemoveIfPresent(self, substr):
100 for index, error in enumerate(self._errors):
101 if error.find(substr) != -1:
102 self._errors = self._errors[0:index] + self._errors[(index + 1) :]
103 break
104
105
106# This class is a lame mock of codecs. We do not verify filename, mode, or

Callers 1

PerformSingleLineLintMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected