MCPcopy Index your code
hub / github.com/cli/cli / TestNewCmdUpdate_Help

Function TestNewCmdUpdate_Help

pkg/cmd/skills/update/update_test.go:25–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestNewCmdUpdate_Help(t *testing.T) {
26 ios, _, _, _ := iostreams.Test()
27 f := &cmdutil.Factory{
28 IOStreams: ios,
29 Prompter: &prompter.PrompterMock{},
30 GitClient: &git.Client{},
31 }
32
33 cmd := NewCmdUpdate(f, func(opts *UpdateOptions) error {
34 return nil
35 })
36
37 assert.Equal(t, "update [<skill>...] [flags]", cmd.Use)
38 assert.NotEmpty(t, cmd.Short)
39 assert.NotEmpty(t, cmd.Long)
40 assert.NotEmpty(t, cmd.Example)
41}
42
43func TestNewCmdUpdate_Flags(t *testing.T) {
44 ios, _, _, _ := iostreams.Test()

Callers

nothing calls this directly

Calls 3

TestFunction · 0.92
NewCmdUpdateFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected