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

Method testNestingInNamespace

cpplint_unittest.py:374–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

372 )
373
374 def testNestingInNamespace(self):
375 lines = [
376 "namespace Test {",
377 "struct OuterClass {",
378 " struct NoFalsePositivesHere;",
379 " struct NoFalsePositivesHere member_variable;",
380 "};",
381 "void foo() {",
382 " const int no_positives_eh = 418;",
383 "}",
384 "} // namespace Test",
385 ]
386
387 results = self.GetNamespaceResults(lines)
388 assert results == ""
389
390 # Test get line width.
391 def testGetLineWidth(self):

Callers

nothing calls this directly

Calls 1

GetNamespaceResultsMethod · 0.95

Tested by

no test coverage detected