25 lines
534 B
Go
25 lines
534 B
Go
package dummy
|
|
|
|
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
|
|
|
func (e *Dummy) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
|
|
res := make([]stage.ExecutorResult, 0, len(cmds))
|
|
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
|
|
}
|