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

Function TestWithLocation

option_test.go:10–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestWithLocation(t *testing.T) {
11 c := New(WithLocation(time.UTC))
12 if c.location != time.UTC {
13 t.Errorf("expected UTC, got %v", c.location)
14 }
15}
16
17func TestWithParser(t *testing.T) {
18 var parser = NewParser(Dow)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
WithLocationFunction · 0.85

Tested by

no test coverage detected