(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestErrors(t *testing.T) { |
| 203 | invalidSpecs := []string{ |
| 204 | "xyz", |
| 205 | "60 0 * * *", |
| 206 | "0 60 * * *", |
| 207 | "0 0 * * XYZ", |
| 208 | } |
| 209 | for _, spec := range invalidSpecs { |
| 210 | _, err := ParseStandard(spec) |
| 211 | if err == nil { |
| 212 | t.Error("expected an error parsing: ", spec) |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | func getTime(value string) time.Time { |
| 218 | if value == "" { |
nothing calls this directly
no test coverage detected
searching dependent graphs…