MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestDetectGitRemoteBasic

Function TestDetectGitRemoteBasic

internal/app/workdir_test.go:238–245  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

236}
237
238func 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}

Callers

nothing calls this directly

Calls 2

writeFakeGitConfigFunction · 0.85
detectGitRemoteFunction · 0.85

Tested by

no test coverage detected