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

Function TestNewViewCommand_UseAndShort

pkg/cli/view_command_test.go:30–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestNewViewCommand_UseAndShort(t *testing.T) {
31 cmd := NewViewCommand()
32 if !strings.HasPrefix(cmd.Use, "view") {
33 t.Errorf("Use = %q; want prefix 'view'", cmd.Use)
34 }
35 if cmd.Short == "" {
36 t.Error("Short description must not be empty")
37 }
38}
39
40func TestNewViewCommand_RequiresExactlyOneArg(t *testing.T) {
41 cmd := NewViewCommand()

Callers

nothing calls this directly

Calls 3

NewViewCommandFunction · 0.85
ErrorfMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected