JOJ3/internal/executor/dummy/executor.go
张泊明518370910136 ad549a4499
All checks were successful
submodules sync / sync (push) Successful in 39s
build / build (push) Successful in 2m10s
build / trigger-build-image (push) Successful in 12s
chore: only deps on go-judge/pb
2025-03-18 16:21:45 -04:00

27 lines
520 B
Go

package dummy
import (
"github.com/joint-online-judge/JOJ3/internal/stage"
)
func (e *Dummy) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
var res []stage.ExecutorResult
for range cmds {
res = append(res, stage.ExecutorResult{
Status: stage.StatusAccepted,
ExitStatus: 0,
Error: "",
Time: 0,
Memory: 0,
RunTime: 0,
Files: map[string]string{},
FileIDs: map[string]string{},
})
}
return res, nil
}
func (e *Dummy) Cleanup() error {
return nil
}