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