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

Method testSlashStarCommentOnSingleLine

cpplint_unittest.py:2058–2069  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

TestMultiLineLintMethod · 0.80

Tested by

no test coverage detected