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

Method testTemplateDefaultArg

cpplint_unittest.py:7010–7015  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7008 assert self.nesting_state.stack[0].name == "K"
7009
7010 def testTemplateDefaultArg(self):
7011 self.UpdateWithLines(["template <class T, class D = default_delete<T>> class unique_ptr {"])
7012 assert len(self.nesting_state.stack) == 1
7013 assert self.nesting_state.stack[0], isinstance(
7014 self.nesting_state.stack[0], cpplint._ClassInfo
7015 )
7016
7017 def testTemplateInnerClass(self):
7018 self.UpdateWithLines(["class A {", " public:"])

Callers

nothing calls this directly

Calls 1

UpdateWithLinesMethod · 0.95

Tested by

no test coverage detected