(t *testing.T)
| 236 | } |
| 237 | |
| 238 | func TestDetectGitRemoteBasic(t *testing.T) { |
| 239 | dir := t.TempDir() |
| 240 | writeFakeGitConfig(t, dir, "https://github.com/foo/bar.git") |
| 241 | got := detectGitRemote(dir) |
| 242 | if got != "https://github.com/foo/bar.git" { |
| 243 | t.Errorf("want https://github.com/foo/bar.git, got %q", got) |
| 244 | } |
| 245 | } |
nothing calls this directly
no test coverage detected