Validate reports whether the start-run request is internally consistent.
(path string)
| 899 | |
| 900 | // Validate reports whether the start-run request is internally consistent. |
| 901 | func (r StartRun) Validate(path string) error { |
| 902 | if strings.TrimSpace(path) == "" { |
| 903 | return fmt.Errorf("%w: start_run path is required", ErrValidation) |
| 904 | } |
| 905 | return nil |
| 906 | } |
| 907 | |
| 908 | // Validate reports whether the cancel-run request is internally consistent. |
| 909 | func (r CancelRun) Validate(path string) error { |
no outgoing calls
no test coverage detected