(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestNextWakeTime(t *testing.T) { |
| 12 | logrus.SetLevel(logrus.DebugLevel) |
| 13 | ts := &Timer{} |
| 14 | ts.SetMonth(-1) |
| 15 | ts.SetWeek(6) |
| 16 | ts.SetHour(16) |
| 17 | ts.SetMinute(30) |
| 18 | t1 := time.Until(ts.nextWakeTime()) |
| 19 | if t1 < 0 { |
| 20 | t.Log(t1) |
| 21 | t.Fail() |
| 22 | } |
| 23 | t.Log(t1) |
| 24 | t.Fail() |
| 25 | } |
| 26 | |
| 27 | func TestClock(t *testing.T) { |
| 28 | db := sql.New("test.db") |
nothing calls this directly
no test coverage detected