MCPcopy Create free account
hub / github.com/coder/coder / attachPty

Function attachPty

enterprise/cli/licenses_test.go:243–248  ·  view source on GitHub ↗
(t *testing.T, inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

241}
242
243func attachPty(t *testing.T, inv *serpent.Invocation) *ptytest.PTY {
244 pty := ptytest.New(t)
245 inv.Stdin = pty.Input()
246 inv.Stdout = pty.Output()
247 return pty
248}
249
250func newFakeLicenseAPI(t *testing.T) http.Handler {
251 r := chi.NewRouter()

Callers 2

TestLicensesAddFakeFunction · 0.85
TestLicensesDeleteFakeFunction · 0.85

Calls 3

NewFunction · 0.92
InputMethod · 0.65
OutputMethod · 0.65

Tested by

no test coverage detected