Skip to content

Commit

Permalink
Update readcoverage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KirbytroNic0528 authored Oct 16, 2024
1 parent a340c03 commit 8a3293e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/readcoverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
)

Expand Down

0 comments on commit 8a3293e

Please sign in to comment.