Validates the `CommandInfo` contained within an `ExecutorInfo`.
| 1257 | |
| 1258 | // Validates the `CommandInfo` contained within an `ExecutorInfo`. |
| 1259 | Option<Error> validateCommandInfo(const ExecutorInfo& executor) |
| 1260 | { |
| 1261 | if (executor.has_command()) { |
| 1262 | Option<Error> error = |
| 1263 | common::validation::validateCommandInfo(executor.command()); |
| 1264 | if (error.isSome()) { |
| 1265 | return Error("Executor's `CommandInfo` is invalid: " + error->message); |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | return None(); |
| 1270 | } |
| 1271 | |
| 1272 | |
| 1273 | // Validates the `ContainerInfo` contained within a `ExecutorInfo`. |
no test coverage detected