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

Function TestCli

cli/clitest/clitest_test.go:18–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestCli(t *testing.T) {
19 t.Parallel()
20 clitest.CreateTemplateVersionSource(t, nil)
21 client := coderdtest.New(t, nil)
22 i, config := clitest.New(t)
23 clitest.SetupConfig(t, client, config)
24 pty := ptytest.New(t).Attach(i)
25 clitest.Start(t, i)
26 pty.ExpectMatch("coder")
27}

Callers

nothing calls this directly

Calls 8

NewFunction · 0.92
NewFunction · 0.92
SetupConfigFunction · 0.92
NewFunction · 0.92
StartFunction · 0.92
AttachMethod · 0.65
ExpectMatchMethod · 0.45

Tested by

no test coverage detected