(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestCheckHourlyLoad(t *testing.T) { |
| 16 | for i := 0; i < 10; i++ { |
| 17 | idles.CheckHourlyLoad(5) |
| 18 | idles.CheckHourlyLoad(1) |
| 19 | idles.CheckHourlyLoad(3) |
| 20 | idles.CheckHourlyLoad(2) |
| 21 | idles.CheckHourlyLoad(4) |
| 22 | } |
| 23 | |
| 24 | t.Log(idles.TestMinLoadHours()) |
| 25 | for h, v := range idles.TestHourlyLoadMap() { |
| 26 | t.Log(types.String(h)+":", v.Avg) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func TestRun(t *testing.T) { |
| 31 | idles.TestSetMinLoadHours([]int{0, time.Now().Hour()}) |
nothing calls this directly
no test coverage detected