(self, lines, start_errors, end_errors, extension)
| 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 | |
| 282 | class TestCpplint(CpplintTestBase): |
no test coverage detected