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

Function getRoot

cli/exp_errors_test.go:84–92  ·  view source on GitHub ↗

Must return a fresh instance of cmds each time.

(t *testing.T)

Source from the content-addressed store, hash-verified

82
83// Must return a fresh instance of cmds each time.
84func getRoot(t *testing.T) *serpent.Command {
85 t.Helper()
86
87 var root cli.RootCmd
88 rootCmd, err := root.Command(root.AGPL())
89 require.NoError(t, err)
90
91 return rootCmd
92}

Callers 2

TestErrorExamplesFunction · 0.85
TestCommandHelpFunction · 0.85

Calls 3

CommandMethod · 0.95
AGPLMethod · 0.95
HelperMethod · 0.65

Tested by

no test coverage detected