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

Function TestCheckCommand

cli/gitauth/askpass_test.go:11–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestCheckCommand(t *testing.T) {
12 t.Parallel()
13 t.Run("Success", func(t *testing.T) {
14 t.Parallel()
15 valid := gitauth.CheckCommand([]string{"Username "}, []string{"GIT_PREFIX=/example"})
16 require.True(t, valid)
17 })
18 t.Run("Failure", func(t *testing.T) {
19 t.Parallel()
20 valid := gitauth.CheckCommand([]string{}, []string{})
21 require.False(t, valid)
22 })
23}
24
25func TestParse(t *testing.T) {
26 t.Parallel()

Callers

nothing calls this directly

Calls 2

CheckCommandFunction · 0.92
RunMethod · 0.65

Tested by

no test coverage detected