mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
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:
commit
ee71e34e51
1 changed files with 1 additions and 3 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue