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

Function getNode

pkg/node/node_test.go:63–72  ·  view source on GitHub ↗
(t *testing.T, drainHelper *drain.Helper)

Source from the content-addressed store, hash-verified

61}
62
63func getNode(t *testing.T, drainHelper *drain.Helper) *node.Node {
64 nthConfig := config.Config{
65 NodeName: nodeName,
66 }
67 tNode, err := node.NewWithValues(nthConfig, drainHelper, uptime.Uptime)
68 if err != nil {
69 t.Error("failed to create node")
70 }
71 return tNode
72}
73
74func newNode(nthConfig config.Config, client *fake.Clientset) (*node.Node, error) {
75 drainHelper := getDrainHelper(client)

Callers 15

TestDrainSuccessFunction · 0.70
TestUncordonSuccessFunction · 0.70
TestUncordonFailureFunction · 0.70
TestGetEventIDSuccessFunction · 0.70

Calls 2

NewWithValuesFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected