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

Method testNamespaceIndentationForClass

cpplint_unittest.py:300–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298 assert results == "Do not indent within a namespace. [whitespace/indent_namespace] [4]"
299
300 def testNamespaceIndentationForClass(self):
301 lines = [
302 "namespace Test {",
303 "void foo() { }",
304 " class Test {",
305 " };",
306 "} // namespace Test",
307 ]
308
309 results = self.GetNamespaceResults(lines)
310 assert results == [
311 "Do not indent within a namespace. [whitespace/indent_namespace] [4]",
312 "Do not indent within a namespace. [whitespace/indent_namespace] [4]",
313 ]
314
315 def testNamespaceIndentationIndentedParameter(self):
316 lines = [

Callers

nothing calls this directly

Calls 1

GetNamespaceResultsMethod · 0.95

Tested by

no test coverage detected