(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestUptimeFromFileReadFail(t *testing.T) { |
| 37 | _, err := UptimeFromFile("does-not-exist") |
| 38 | h.Assert(t, err != nil, "Failed to return error when ReadFile failed") |
| 39 | } |
| 40 | |
| 41 | func TestUptimeFromFileBadData(t *testing.T) { |
| 42 | d1 := []byte("Something not time") |
nothing calls this directly
no test coverage detected