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

Function getUptimeFromFile

pkg/node/node_internal_test.go:37–41  ·  view source on GitHub ↗
(filepath string)

Source from the content-addressed store, hash-verified

35var testFile = "test.out"
36
37func getUptimeFromFile(filepath string) uptime.UptimeFuncType {
38 return func() (int64, error) {
39 return uptime.UptimeFromFile(filepath)
40 }
41}
42
43func getTestDrainHelper(client *fake.Clientset) *drain.Helper {
44 return &drain.Helper{

Calls 1

UptimeFromFileFunction · 0.92

Tested by

no test coverage detected