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

Method testForwardDeclarationNamespaceIndentation

cpplint_unittest.py:294–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 return error_collector.Results()
293
294 def testForwardDeclarationNamespaceIndentation(self):
295 lines = ["namespace Test {", " class ForwardDeclaration;", "} // namespace Test"]
296
297 results = self.GetNamespaceResults(lines)
298 assert results == "Do not indent within a namespace. [whitespace/indent_namespace] [4]"
299
300 def testNamespaceIndentationForClass(self):
301 lines = [

Callers

nothing calls this directly

Calls 1

GetNamespaceResultsMethod · 0.95

Tested by

no test coverage detected