MCPcopy Index your code
hub / github.com/Vanderhoof/PyDBML / test_comment

Method test_comment

test/test_tools.py:29–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28class TestCommentToSQL(TestCase):
29 def test_comment(self) -> None:
30 oneline = "comment"
31 self.assertEqual(f"-- {oneline}\n", comment_to_sql(oneline))
32
33 expected = """--
34-- line1
35-- line2
36-- line3
37--
38"""
39 source = "\nline1\nline2\nline3\n"
40 self.assertEqual(comment_to_sql(source), expected)
41
42
43class TestNoteOptionToDBML(TestCase):

Callers

nothing calls this directly

Calls 1

comment_to_sqlFunction · 0.90

Tested by

no test coverage detected