MCPcopy Create free account
hub / github.com/alibaba/libgrape-lite / IncrementErrorCount

Method IncrementErrorCount

misc/cpplint.py:1335–1343  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

1333 self.errors_by_category = {}
1334
1335 def IncrementErrorCount(self, category):
1336 """Bumps the module's error statistic."""
1337 self.error_count += 1
1338 if self.counting in ('toplevel', 'detailed'):
1339 if self.counting != 'detailed':
1340 category = category.split('/')[0]
1341 if category not in self.errors_by_category:
1342 self.errors_by_category[category] = 0
1343 self.errors_by_category[category] += 1
1344
1345 def PrintErrorCounts(self):
1346 """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