(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func 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 | |
| 63 | func TestCronAddAndRemove(t *testing.T) { |
| 64 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…