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

Function isValidatorExists

client/packmgr/validator.go:86–96  ·  view source on GitHub ↗
(config *structs.JudgeConfiguration)

Source from the content-addressed store, hash-verified

84}
85
86func 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校验
99func runTestlibValidators(config *structs.JudgeConfiguration, moduleName string, caseIndex int) error {

Callers 1

runTestlibValidatorsFunction · 0.85

Calls 2

ErrorfMethod · 0.80

Tested by

no test coverage detected