MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / runNormalJudge

Method runNormalJudge

executor/runtime.go:33–37  ·  view source on GitHub ↗

运行目标程序

(rst *commonStructs.TestCaseResult)

Source from the content-addressed store, hash-verified

31
32// 运行目标程序
33func (session *JudgeSession) runNormalJudge(rst *commonStructs.TestCaseResult) (*ProcessInfo, error) {
34 ctx, cancel := context.WithTimeout(context.Background(), time.Duration(session.Timeout)*time.Second)
35 defer cancel()
36 return runAsync(ctx, session, rst, false)
37}
38
39// 运行特殊评测
40func (session *JudgeSession) runSpecialJudge(rst *commonStructs.TestCaseResult) (*ProcessInfo, *ProcessInfo, error) {

Callers 1

JudgeOnceMethod · 0.95

Calls 1

runAsyncFunction · 0.85

Tested by

no test coverage detected