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

Method testBuildHeaderGuardWithRoot

cpplint_unittest.py:5445–5455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5443 assert error_collector.ResultList() == []
5444
5445 def testBuildHeaderGuardWithRoot(self):
5446 temp_directory = os.path.realpath(tempfile.mkdtemp())
5447 try:
5448 test_directory = os.path.join(temp_directory, "test")
5449 os.makedirs(test_directory)
5450 os.makedirs(os.path.join(test_directory, ".svn"))
5451 header_directory = os.path.join(test_directory, "cpplint")
5452 os.makedirs(header_directory)
5453 self.doTestBuildHeaderGuardWithRoot(header_directory)
5454 finally:
5455 shutil.rmtree(temp_directory)
5456
5457 def doTestBuildHeaderGuardWithRoot(self, header_directory):
5458 # note: Tested file paths must be real, otherwise

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected