MCPcopy
hub / github.com/robfig/cron / TestSlash0NoHang

Function TestSlash0NoHang

spec_test.go:294–300  ·  view source on GitHub ↗

https://github.com/robfig/cron/issues/144

(t *testing.T)

Source from the content-addressed store, hash-verified

292
293// https://github.com/robfig/cron/issues/144
294func TestSlash0NoHang(t *testing.T) {
295 schedule := "TZ=America/New_York 15/0 * * * *"
296 _, err := ParseStandard(schedule)
297 if err == nil {
298 t.Error("expected an error on 0 increment")
299 }
300}

Callers

nothing calls this directly

Calls 2

ParseStandardFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected