| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| 1 | import os |
||
| 15 | class CPPLintBearTest(LocalBearTestHelper): |
||
| 16 | def setUp(self): |
||
| 17 | self.section = Section("test section") |
||
| 18 | self.uut = CPPLintBear(self.section, Queue()) |
||
| 19 | self.test_file = os.path.join(os.path.dirname(__file__), |
||
| 20 | "test_files", |
||
| 21 | "cpplint_bear_test.cpp") |
||
| 22 | |||
| 23 | def test_run(self): |
||
| 24 | # Should yield missing copyright line |
||
| 25 | self.assertLinesInvalid(self.uut, [], self.test_file) |
||
| 26 | |||
| 27 | # Let's ignore legal issues |
||
| 28 | self.section.append(Setting("cpplint_ignore", "legal")) |
||
| 29 | self.assertLinesValid(self.uut, [], self.test_file) |
||
| 30 | |||
| 44 |