MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / check_file

Function check_file

data/unit_test/tests.py:3–12  ·  view source on GitHub ↗

根据task_id,判断是否需要输出文件, 如果需要,则检测输出文件是否在output文件夹内,模糊匹配,返回匹配的文件名称 如果没有输出文件,则直接failed 如果不需要,这一环节直接pass 好像不是很必要

(task_id)

Source from the content-addressed store, hash-verified

1import json
2
3def check_file(task_id):
4 '''
5 根据task_id,判断是否需要输出文件,
6 如果需要,则检测输出文件是否在output文件夹内,模糊匹配,返回匹配的文件名称
7 如果没有输出文件,则直接failed
8 如果不需要,这一环节直接pass
9 好像不是很必要
10 '''
11
12 pass
13
14
15import json

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected