test to ensure hidden commands do not show up in usage/help text
(t *testing.T)
| 1904 | |
| 1905 | // test to ensure hidden commands do not show up in usage/help text |
| 1906 | func TestHiddenCommandIsHidden(t *testing.T) { |
| 1907 | c := &Command{Use: "c", Hidden: true, Run: emptyRun} |
| 1908 | if c.IsAvailableCommand() { |
| 1909 | t.Errorf("Hidden command should be unavailable") |
| 1910 | } |
| 1911 | } |
| 1912 | |
| 1913 | func TestCommandsAreSorted(t *testing.T) { |
| 1914 | EnableCommandSorting = true |
nothing calls this directly
no test coverage detected