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

Method testMultiLineComments

cpplint_unittest.py:1518–1555  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1516 )
1517
1518 def testMultiLineComments(self):
1519 # missing explicit is bad
1520 self.TestMultiLineLint(
1521 r"""int a = 0;
1522 /* multi-liner
1523 class Foo {
1524 Foo(int f); // should cause a lint warning in code
1525 }
1526 */ """,
1527 "",
1528 )
1529 self.TestMultiLineLint(
1530 r"""/* int a = 0; multi-liner
1531 static const int b = 0;""",
1532 "Could not find end of multi-line comment [readability/multiline_comment] [5]",
1533 )
1534 self.TestMultiLineLint(
1535 r""" /* multi-line comment""",
1536 "Could not find end of multi-line comment [readability/multiline_comment] [5]",
1537 )
1538 self.TestMultiLineLint(r""" // /* comment, but not multi-line""", "")
1539 self.TestMultiLineLint(
1540 r"""/**********
1541 */""",
1542 "",
1543 )
1544 self.TestMultiLineLint(
1545 r"""/**
1546 * Doxygen comment
1547 */""",
1548 "",
1549 )
1550 self.TestMultiLineLint(
1551 r"""/*!
1552 * Doxygen comment
1553 */""",
1554 "",
1555 )
1556
1557 def testMultilineStrings(self):
1558 multiline_string_error_message = (

Callers

nothing calls this directly

Calls 1

TestMultiLineLintMethod · 0.80

Tested by

no test coverage detected