(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 25 | func TestParse(t *testing.T) { |
| 26 | t.Parallel() |
nothing calls this directly
no test coverage detected