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

Function TestStopWithoutStart

cron_test.go:360–363  ·  view source on GitHub ↗

Test that calling stop before start silently returns without blocking the stop channel.

(t *testing.T)

Source from the content-addressed store, hash-verified

358// Test that calling stop before start silently returns without
359// blocking the stop channel.
360func TestStopWithoutStart(t *testing.T) {
361 cron := New()
362 cron.Stop()
363}
364
365type testJob struct {
366 wg *sync.WaitGroup

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
StopMethod · 0.80

Tested by

no test coverage detected