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

Function TestNewFailure

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

Source from the content-addressed store, hash-verified

116}
117
118func TestNewFailure(t *testing.T) {
119 client := fake.NewSimpleClientset()
120 _, err := newNode(config.Config{}, client)
121 h.Assert(t, true, "Failed to return error when creating new Node.", err != nil)
122}
123
124func TestDrainSuccess(t *testing.T) {
125 isOwnerController := true

Callers

nothing calls this directly

Calls 1

newNodeFunction · 0.85

Tested by

no test coverage detected