(t *testing.T, repoDir string, args ...string)
| 1031 | } |
| 1032 | |
| 1033 | func runGitCommand(t *testing.T, repoDir string, args ...string) { |
| 1034 | t.Helper() |
| 1035 | |
| 1036 | cmdArgs := append([]string{"-C", repoDir}, args...) |
| 1037 | cmd := exec.Command("git", cmdArgs...) |
| 1038 | output, err := cmd.CombinedOutput() |
| 1039 | require.NoErrorf(t, err, "git %s should succeed: %s", strings.Join(args, " "), strings.TrimSpace(string(output))) |
| 1040 | } |
| 1041 | |
| 1042 | // TestReadLockFileFromHEAD_GitStates verifies readLockFileFromHEAD behavior across |
| 1043 | // multiple repository states. |
no outgoing calls
no test coverage detected