MCPcopy Index your code
hub / github.com/aws/aws-node-termination-handler / TestGetEventIDNoNodeFailure

Function TestGetEventIDNoNodeFailure

pkg/node/node_test.go:268–272  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

266}
267
268func TestGetEventIDNoNodeFailure(t *testing.T) {
269 tNode := getNode(t, getDrainHelper(fake.NewSimpleClientset()))
270 _, err := tNode.GetEventID(nodeName)
271 h.Assert(t, err != nil, "Failed to return error on GetEventID failed to find node")
272}
273
274func TestGetEventIDNoLabelFailure(t *testing.T) {
275 client := fake.NewSimpleClientset()

Callers

nothing calls this directly

Calls 3

GetEventIDMethod · 0.80
getNodeFunction · 0.70
getDrainHelperFunction · 0.70

Tested by

no test coverage detected