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

Method doTestBlankLinesCheck

cpplint_unittest.py:269–279  ·  view source on GitHub ↗
(self, lines, start_errors, end_errors, extension)

Source from the content-addressed store, hash-verified

267 self.doTestBlankLinesCheck(lines, start_errors, end_errors, extension)
268
269 def doTestBlankLinesCheck(self, lines, start_errors, end_errors, extension):
270 error_collector = ErrorCollector(self.assertTrue)
271 cpplint.ProcessFileData("foo." + extension, extension, lines, error_collector)
272 assert start_errors == error_collector.Results().count(
273 "Redundant blank line at the start of a code block should be deleted. "
274 "[whitespace/blank_line] [2]"
275 )
276 assert end_errors == error_collector.Results().count(
277 "Redundant blank line at the end of a code block should be deleted. "
278 "[whitespace/blank_line] [3]"
279 )
280
281
282class TestCpplint(CpplintTestBase):

Callers 1

TestBlankLinesCheckMethod · 0.95

Calls 2

ResultsMethod · 0.95
ErrorCollectorClass · 0.85

Tested by

no test coverage detected