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

Method testDecoratedClass

cpplint_unittest.py:6803–6811  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6801 assert len(self.nesting_state.stack) == 0
6802
6803 def testDecoratedClass(self):
6804 self.UpdateWithLines(["class Decorated_123 API A {"])
6805 assert len(self.nesting_state.stack) == 1
6806 assert isinstance(self.nesting_state.stack[0], cpplint._ClassInfo)
6807 assert self.nesting_state.stack[0].name == "A"
6808 assert not self.nesting_state.stack[0].is_derived
6809 assert self.nesting_state.stack[0].class_indent == 0
6810 self.UpdateWithLines(["}"])
6811 assert len(self.nesting_state.stack) == 0
6812
6813 def testInnerClass(self):
6814 self.UpdateWithLines(["class A::B::C {"])

Callers

nothing calls this directly

Calls 1

UpdateWithLinesMethod · 0.95

Tested by

no test coverage detected