MCPcopy Create free account
hub / github.com/github/gh-aw / TestNewUpdateCommand_CoolDownFlagUsage

Function TestNewUpdateCommand_CoolDownFlagUsage

pkg/cli/update_command_test.go:98–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestNewUpdateCommand_CoolDownFlagUsage(t *testing.T) {
99 cmd := NewUpdateCommand(func(string) error { return nil })
100 require.NotNil(t, cmd)
101
102 coolDownFlag := cmd.Flags().Lookup("cool-down")
103 require.NotNil(t, coolDownFlag, "update command should register --cool-down")
104 assert.Equal(t, coolDownFlagUsage, coolDownFlag.Usage, "cool-down usage should stay consistent across commands")
105}
106
107func TestNewUpdateCommand_MentionsEnterpriseSourceResolution(t *testing.T) {
108 cmd := NewUpdateCommand(func(string) error { return nil })

Callers

nothing calls this directly

Calls 1

NewUpdateCommandFunction · 0.85

Tested by

no test coverage detected