MCPcopy Create free account
hub / github.com/aws/aws-node-termination-handler / TestUptimeFromFileReadFail

Function TestUptimeFromFileReadFail

pkg/uptime/common_test.go:36–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func 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
41func TestUptimeFromFileBadData(t *testing.T) {
42 d1 := []byte("Something not time")

Callers

nothing calls this directly

Calls 1

UptimeFromFileFunction · 0.85

Tested by

no test coverage detected