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

Method testInnerClass

cpplint_unittest.py:6813–6821  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6811 assert len(self.nesting_state.stack) == 0
6812
6813 def testInnerClass(self):
6814 self.UpdateWithLines(["class A::B::C {"])
6815 assert len(self.nesting_state.stack) == 1
6816 assert isinstance(self.nesting_state.stack[0], cpplint._ClassInfo)
6817 assert self.nesting_state.stack[0].name == "A::B::C"
6818 assert not self.nesting_state.stack[0].is_derived
6819 assert self.nesting_state.stack[0].class_indent == 0
6820 self.UpdateWithLines(["}"])
6821 assert len(self.nesting_state.stack) == 0
6822
6823 def testClass(self):
6824 self.UpdateWithLines(["class A {"])

Callers

nothing calls this directly

Calls 1

UpdateWithLinesMethod · 0.95

Tested by

no test coverage detected