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

Method testPragmaOnce

cpplint_unittest.py:5435–5443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5433 ), error_collector.ResultList()
5434
5435 def testPragmaOnce(self):
5436 error_collector = ErrorCollector(self.assertTrue)
5437 cpplint.ProcessFileData(
5438 "mydir/foo.h",
5439 "h",
5440 ["// Copyright 2014 Your Company.", "#pragma once", ""],
5441 error_collector,
5442 )
5443 assert error_collector.ResultList() == []
5444
5445 def testBuildHeaderGuardWithRoot(self):
5446 temp_directory = os.path.realpath(tempfile.mkdtemp())

Callers

nothing calls this directly

Calls 2

ResultListMethod · 0.95
ErrorCollectorClass · 0.85

Tested by

no test coverage detected