MCPcopy Create free account
hub / github.com/apache/mesos / IncrementErrorCount

Method IncrementErrorCount

support/cpplint.py:948–956  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

946 self.errors_by_category = {}
947
948 def IncrementErrorCount(self, category):
949 """Bumps the module's error statistic."""
950 self.error_count += 1
951 if self.counting in ('toplevel', 'detailed'):
952 if self.counting != 'detailed':
953 category = category.split('/')[0]
954 if category not in self.errors_by_category:
955 self.errors_by_category[category] = 0
956 self.errors_by_category[category] += 1
957
958 def PrintErrorCounts(self):
959 """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