(self)
| 2056 | cpplint._cpplint_state.verbose_level = old_verbose_level |
| 2057 | |
| 2058 | def testSlashStarCommentOnSingleLine(self): |
| 2059 | self.TestMultiLineLint("""/* static */ Foo(int f);""", "") |
| 2060 | self.TestMultiLineLint("""/*/ static */ Foo(int f);""", "") |
| 2061 | self.TestMultiLineLint( |
| 2062 | """/*/ static Foo(int f);""", |
| 2063 | "Could not find end of multi-line comment [readability/multiline_comment] [5]", |
| 2064 | ) |
| 2065 | self.TestMultiLineLint( |
| 2066 | """ /*/ static Foo(int f);""", |
| 2067 | "Could not find end of multi-line comment [readability/multiline_comment] [5]", |
| 2068 | ) |
| 2069 | self.TestMultiLineLint(""" /**/ static Foo(int f);""", "") |
| 2070 | |
| 2071 | # Test suspicious usage of "if" like this: |
| 2072 | # if (a == b) { |
nothing calls this directly
no test coverage detected