Merge branch 'codeflash/optimize-pr2627-2026-04-28T12.46.41' of github.com:codeflash-ai/codeflash-internal into codeflash/optimize-pr2627-2026-04-28T12.46.41

This commit is contained in:
ali 2026-04-28 15:52:14 +03:00
commit ee71e34e51

View file

@ -173,7 +173,6 @@ def parse_and_validate_go_output(response_content: str) -> str:
code = pattern_res.strip()
is_valid, error = validate_go_syntax(code)
if not is_valid:
raise SyntaxError(f"Invalid Go code: {error}")
@ -324,8 +323,7 @@ async def testgen_go(
def _extract_go_code_block(content: str) -> str | None:
"""
Fast extraction of the first Go code block that matches the semantics of:
"""Fast extraction of the first Go code block that matches the semantics of:
^```(?:go)?\\s*\n(.*?)\n```
The opening fence must be at the start of a line (position 0 or preceded by '\n'),