MCPcopy Create free account
hub / github.com/algolia/cli / TestNewUpdateCmd

Function TestNewUpdateCmd

pkg/cmd/application/update/update_test.go:106–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestNewUpdateCmd(t *testing.T) {
107 f, _ := test.NewFactory(false, nil, nil, "")
108 cmd := NewUpdateCmd(f)
109
110 assert.Equal(t, "update", cmd.Name())
111 assert.Equal(t, "true", cmd.Annotations["skipAuthCheck"])
112
113 nameFlag := cmd.Flags().Lookup("name")
114 require.NotNil(t, nameFlag)
115}

Callers

nothing calls this directly

Calls 2

NewFactoryFunction · 0.92
NewUpdateCmdFunction · 0.70

Tested by

no test coverage detected