(config *structs.JudgeConfiguration)
| 84 | } |
| 85 | |
| 86 | func isValidatorExists(config *structs.JudgeConfiguration) error { |
| 87 | validator, err := utils.GetCompiledBinaryFileAbsPath("validator", config.TestLib.ValidatorName, config.ConfigDir) |
| 88 | if err != nil { |
| 89 | return err |
| 90 | } |
| 91 | _, err = os.Stat(validator) |
| 92 | if os.IsNotExist(err) { |
| 93 | return errors.Errorf("[validator] execuable validator file not exists") |
| 94 | } |
| 95 | return nil |
| 96 | } |
| 97 | |
| 98 | // 运行Testlib的validator校验 |
| 99 | func runTestlibValidators(config *structs.JudgeConfiguration, moduleName string, caseIndex int) error { |
no test coverage detected