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

Function newCLI

enterprise/cli/root_test.go:18–23  ·  view source on GitHub ↗
(t *testing.T, args ...string)

Source from the content-addressed store, hash-verified

16)
17
18func newCLI(t *testing.T, args ...string) (*serpent.Invocation, config.Root) {
19 var root cli.RootCmd
20 cmd, err := root.Command(root.EnterpriseSubcommands())
21 require.NoError(t, err)
22 return clitest.NewWithCommand(t, cmd, args...)
23}
24
25func TestEnterpriseHandlersOK(t *testing.T) {
26 t.Parallel()

Callers 15

TestTemplateCreateFunction · 0.85
TestExternalWorkspacesFunction · 0.85
TestGroupDeleteFunction · 0.85
TestBoundarySubcommandFunction · 0.85
Test_ProxyCRUDFunction · 0.85
TestPrebuildsPauseFunction · 0.85
TestPrebuildsResumeFunction · 0.85
TestPrebuildsCommandFunction · 0.85
TestPrebuildsSettingsAPIFunction · 0.85
TestCreateGroupFunction · 0.85

Calls 3

CommandMethod · 0.95
EnterpriseSubcommandsMethod · 0.95
NewWithCommandFunction · 0.92

Tested by

no test coverage detected