MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / TestNextWakeTime

Function TestNextWakeTime

plugin/manager/timer/timer_test.go:11–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func 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
27func TestClock(t *testing.T) {
28 db := sql.New("test.db")

Callers

nothing calls this directly

Calls 5

SetMonthMethod · 0.95
SetWeekMethod · 0.95
SetHourMethod · 0.95
SetMinuteMethod · 0.95
nextWakeTimeMethod · 0.95

Tested by

no test coverage detected