MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / IncrementErrorCount

Method IncrementErrorCount

steps/cpplint.py:1350–1358  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

1348 self.errors_by_category = {}
1349
1350 def IncrementErrorCount(self, category):
1351 """Bumps the module's error statistic."""
1352 self.error_count += 1
1353 if self.counting in ('toplevel', 'detailed'):
1354 if self.counting != 'detailed':
1355 category = category.split('/')[0]
1356 if category not in self.errors_by_category:
1357 self.errors_by_category[category] = 0
1358 self.errors_by_category[category] += 1
1359
1360 def PrintErrorCounts(self):
1361 """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