| 1414 | |
| 1415 | |
| 1416 | Option<Error> validateCheck(const TaskInfo& task) |
| 1417 | { |
| 1418 | if (task.has_check()) { |
| 1419 | Option<Error> error = common::validation::validateCheckInfo(task.check()); |
| 1420 | if (error.isSome()) { |
| 1421 | return Error("Task uses invalid check: " + error->message); |
| 1422 | } |
| 1423 | } |
| 1424 | |
| 1425 | return None(); |
| 1426 | } |
| 1427 | |
| 1428 | |
| 1429 | Option<Error> validateHealthCheck(const TaskInfo& task) |
nothing calls this directly
no test coverage detected