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

Method TestLintContains

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

Source from the content-addressed store, hash-verified

240
241 # Perform lint and make sure one of the errors is what we want
242 def TestLintContains(self, code, expected_message):
243 assert expected_message in self.PerformSingleLineLint(code)
244
245 def TestLintNotContains(self, code, expected_message):
246 assert expected_message not in self.PerformSingleLineLint(code)

Calls 1

PerformSingleLineLintMethod · 0.95

Tested by

no test coverage detected