Validate reports whether the dependency-create request is internally consistent.
(path string)
| 859 | |
| 860 | // Validate reports whether the dependency-create request is internally consistent. |
| 861 | func (r AddDependency) Validate(path string) error { |
| 862 | dependency := Dependency{ |
| 863 | TaskID: r.TaskID, |
| 864 | DependsOnTaskID: r.DependsOnTaskID, |
| 865 | Kind: r.Kind, |
| 866 | } |
| 867 | if err := dependency.Validate(); err != nil { |
| 868 | return fmt.Errorf("%w: %s", err, path) |
| 869 | } |
| 870 | return nil |
| 871 | } |
| 872 | |
| 873 | // Validate reports whether the enqueue-run request is internally consistent. |
| 874 | func (r EnqueueRun) Validate(path string) error { |
no test coverage detected