(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func 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 | |
| 40 | func TestNewViewCommand_RequiresExactlyOneArg(t *testing.T) { |
| 41 | cmd := NewViewCommand() |
nothing calls this directly
no test coverage detected