MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / IncrementErrorCount

Method IncrementErrorCount

util/cpplint.py:925–933  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

923 self.errors_by_category = {}
924
925 def IncrementErrorCount(self, category):
926 """Bumps the module's error statistic."""
927 self.error_count += 1
928 if self.counting in ('toplevel', 'detailed'):
929 if self.counting != 'detailed':
930 category = category.split('/')[0]
931 if category not in self.errors_by_category:
932 self.errors_by_category[category] = 0
933 self.errors_by_category[category] += 1
934
935 def PrintErrorCounts(self):
936 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected