diff --git a/scripts/readcoverage.py b/scripts/readcoverage.py index b15752b32..f22bc833c 100644 --- a/scripts/readcoverage.py +++ b/scripts/readcoverage.py @@ -5,10 +5,15 @@ def read_coverage(moonbit_code, index, api_key): read_prompt = ChatPromptTemplate.from_template( - """你是一位技术高超的moonbit工程师,现在你需要读入moonbit语言的代码以及测试未覆盖代码行数的索引 - 根据索引找出测试未覆盖的代码并返回该行代码所在函数的函数 - 需要读入的MoonBit代码:{moonbit_code},未覆盖代码行数的索引:{index} - 注意,你的输出中只需要包含未覆盖的函数,不需要包含分析过程和任何其他语句。 + """ + You are a highly skilled MoonBit engineer. Now you need to read in MoonBit code and the indices of uncovered code lines, + then identify and return the functions containing those uncovered lines. + Input: + MoonBit code: {moonbit_code} + Indices of uncovered code lines: {index} + Output request: + Your output should only include the functions that contain the uncovered code. + Do not include any analysis process or any other statements in your output. """ )