MCPcopy Create free account
hub / github.com/argotorg/solidity / formatCase

Function formatCase

test/scripts/test_isolate_tests.py:19–21  ·  view source on GitHub ↗

Formats code to contain only one indentation and terminate with a \n

(text)

Source from the content-addressed store, hash-verified

17CODE_BLOCK_WITH_DIRECTIVES_RST_CONTENT = load_fixture(CODE_BLOCK_WITH_DIRECTIVES_RST_PATH)
18
19def formatCase(text):
20 """Formats code to contain only one indentation and terminate with a \n"""
21 return indent(dedent(text.lstrip("\n")), " ") + "\n"
22
23class TestExtractDocsCases(unittest.TestCase):
24 def setUp(self):

Calls 1

indentFunction · 0.85

Tested by

no test coverage detected