MCPcopy
hub / github.com/pocketbase/pocketbase / TestCronSetTimezone

Function TestCronSetTimezone

tools/cron/cron_test.go:49–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestCronSetTimezone(t *testing.T) {
50 t.Parallel()
51
52 c := New()
53
54 timezone, _ := time.LoadLocation("Asia/Tokyo")
55
56 c.SetTimezone(timezone)
57
58 if c.timezone.String() != timezone.String() {
59 t.Fatalf("Expected timezone %v, got %v", timezone, c.timezone)
60 }
61}
62
63func TestCronAddAndRemove(t *testing.T) {
64 t.Parallel()

Callers

nothing calls this directly

Calls 3

SetTimezoneMethod · 0.80
NewFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…