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

Method testTemplateInnerClass

cpplint_unittest.py:7017–7024  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7015 )
7016
7017 def testTemplateInnerClass(self):
7018 self.UpdateWithLines(["class A {", " public:"])
7019 assert len(self.nesting_state.stack) == 1
7020 assert isinstance(self.nesting_state.stack[0], cpplint._ClassInfo)
7021
7022 self.UpdateWithLines([" template <class B>", " class C<alloc<B> >", " : public A {"])
7023 assert len(self.nesting_state.stack) == 2
7024 assert isinstance(self.nesting_state.stack[1], cpplint._ClassInfo)
7025
7026 def testArguments(self):
7027 self.UpdateWithLines(["class A {"])

Callers

nothing calls this directly

Calls 1

UpdateWithLinesMethod · 0.95

Tested by

no test coverage detected