MCPcopy Create free account
hub / github.com/tensorflow/tfjs / IncrementErrorCount

Method IncrementErrorCount

tfjs-backend-wasm/tools/cpplint.py:943–951  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

941 self.errors_by_category = {}
942
943 def IncrementErrorCount(self, category):
944 """Bumps the module's error statistic."""
945 self.error_count += 1
946 if self.counting in ('toplevel', 'detailed'):
947 if self.counting != 'detailed':
948 category = category.split('/')[0]
949 if category not in self.errors_by_category:
950 self.errors_by_category[category] = 0
951 self.errors_by_category[category] += 1
952
953 def PrintErrorCounts(self):
954 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls 1

splitMethod · 0.65

Tested by

no test coverage detected