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

Function newNode

pkg/node/node_test.go:74–77  ·  view source on GitHub ↗
(nthConfig config.Config, client *fake.Clientset)

Source from the content-addressed store, hash-verified

72}
73
74func newNode(nthConfig config.Config, client *fake.Clientset) (*node.Node, error) {
75 drainHelper := getDrainHelper(client)
76 return node.NewWithValues(nthConfig, drainHelper, uptime.Uptime)
77}
78
79func TestDryRun(t *testing.T) {
80 tNode, err := newNode(config.Config{DryRun: true}, fake.NewSimpleClientset())

Calls 2

NewWithValuesFunction · 0.92
getDrainHelperFunction · 0.70

Tested by

no test coverage detected