We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a1012 commit 98b5ef5Copy full SHA for 98b5ef5
misc/codegen/generators/rusttestgen.py
@@ -53,6 +53,7 @@ def generate(opts, renderer):
53
code.append(line)
54
if not has_code:
55
continue
56
+ assert not adding_code, "Unterminated code block in docstring: " + "\n".join(cls.doc)
57
test_name = inflection.underscore(cls.name)
58
signature = cls.rust_doc_test_function
59
fn = signature and Function(f"test_{test_name}", signature)
0 commit comments