nolint:tparallel,paralleltest
(t *testing.T)
| 12 | |
| 13 | //nolint:tparallel,paralleltest |
| 14 | func TestEnterpriseCommandHelp(t *testing.T) { |
| 15 | // Only test the enterprise commands |
| 16 | getCmds := func(t *testing.T) *serpent.Command { |
| 17 | // Must return a fresh instance of cmds each time. |
| 18 | t.Helper() |
| 19 | var root cli.RootCmd |
| 20 | rootCmd, err := root.Command((&RootCmd{}).enterpriseOnly()) |
| 21 | require.NoError(t, err) |
| 22 | |
| 23 | return rootCmd |
| 24 | } |
| 25 | clitest.TestCommandHelp(t, getCmds, clitest.DefaultCases()) |
| 26 | } |
nothing calls this directly
no test coverage detected