(t *testing.T)
| 351 | } |
| 352 | |
| 353 | func TestNoDescriptorParser(t *testing.T) { |
| 354 | parser := NewParser(Minute | Hour) |
| 355 | _, err := parser.Parse("@every 1m") |
| 356 | if err == nil { |
| 357 | t.Error("expected an error, got none") |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | func every5min(loc *time.Location) *SpecSchedule { |
| 362 | return &SpecSchedule{1 << 0, 1 << 5, all(hours), all(dom), all(months), all(dow), loc} |