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

Method TestLint

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

Source from the content-addressed store, hash-verified

247
248 # Perform lint and compare the error message with "expected_message".
249 def TestLint(self, code, expected_message):
250 assert expected_message == self.PerformSingleLineLint(code)
251
252 def TestMultiLineLint(self, code, expected_message):
253 assert expected_message == self.PerformMultiLineLint(code)

Callers 15

testSpacesAtEndOfLineMethod · 0.80
testLineLengthCheckMethod · 0.80
testErrorSuppressionMethod · 0.80
testCStyleCastMethod · 0.80
testRuntimeCastingMethod · 0.80
testRuntimeSelfinitMethod · 0.80
testDeprecatedCastMethod · 0.80
testMockMethodMethod · 0.80
testMockCallbackMethod · 0.80

Calls 1

PerformSingleLineLintMethod · 0.95

Tested by

no test coverage detected