MCPcopy Index your code
hub / github.com/cpplint/cpplint / TestLintLogCodeOnError

Method TestLintLogCodeOnError

cpplint_unittest.py:5773–5777  ·  view source on GitHub ↗
(self, code, expected_message)

Source from the content-addressed store, hash-verified

5771 )
5772
5773 def TestLintLogCodeOnError(self, code, expected_message):
5774 # Special TestLint which logs the input code on error.
5775 assert (result := self.PerformSingleLineLint(code)) == expected_message, (
5776 f'For code: "{code}"\nGot: "{result}"\nExpected: "{expected_message}"'
5777 )
5778
5779 def testBuildStorageClass(self):
5780 qualifiers = [None, "const", "volatile"]

Callers 1

testBuildStorageClassMethod · 0.95

Calls 1

PerformSingleLineLintMethod · 0.80

Tested by

no test coverage detected