MCPcopy Index your code
hub / github.com/coder/coder / TestEnterpriseCommandHelp

Function TestEnterpriseCommandHelp

enterprise/cli/root_internal_test.go:14–26  ·  view source on GitHub ↗

nolint:tparallel,paralleltest

(t *testing.T)

Source from the content-addressed store, hash-verified

12
13//nolint:tparallel,paralleltest
14func 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}

Callers

nothing calls this directly

Calls 5

CommandMethod · 0.95
TestCommandHelpFunction · 0.92
DefaultCasesFunction · 0.92
enterpriseOnlyMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected