(self)
| 298 | assert results == "Do not indent within a namespace. [whitespace/indent_namespace] [4]" |
| 299 | |
| 300 | def testNamespaceIndentationForClass(self): |
| 301 | lines = [ |
| 302 | "namespace Test {", |
| 303 | "void foo() { }", |
| 304 | " class Test {", |
| 305 | " };", |
| 306 | "} // namespace Test", |
| 307 | ] |
| 308 | |
| 309 | results = self.GetNamespaceResults(lines) |
| 310 | assert results == [ |
| 311 | "Do not indent within a namespace. [whitespace/indent_namespace] [4]", |
| 312 | "Do not indent within a namespace. [whitespace/indent_namespace] [4]", |
| 313 | ] |
| 314 | |
| 315 | def testNamespaceIndentationIndentedParameter(self): |
| 316 | lines = [ |
nothing calls this directly
no test coverage detected