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

Method testUnnamedNamespacesInNonHeaders

cpplint_unittest.py:5117–5120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5115 self.TestLanguageRulesCheck("foo." + extension, "namespace foonamespace {", "")
5116
5117 def testUnnamedNamespacesInNonHeaders(self):
5118 for extension in ["c", "cc", "cpp", "cxx", "c++", "cu"]:
5119 self.TestLanguageRulesCheck("foo." + extension, "namespace {", "")
5120 self.TestLanguageRulesCheck("foo." + extension, "namespace foo {", "")
5121
5122 def testBuildClass(self):
5123 # Test that the linter can parse to the end of class definitions,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected