MCPcopy Create free account
hub / github.com/libgit2/git2go / TestCloneWithExternalHTTPUrl

Function TestCloneWithExternalHTTPUrl

clone_test.go:76–87  ·  view source on GitHub ↗

TestCloneWithExternalHTTPUrl

(t *testing.T)

Source from the content-addressed store, hash-verified

74
75// TestCloneWithExternalHTTPUrl
76func TestCloneWithExternalHTTPUrl(t *testing.T) {
77
78 path, err := ioutil.TempDir("", "git2go")
79 defer os.RemoveAll(path)
80
81 // clone the repo
82 url := "https://github.com/libgit2/TestGitRepository"
83 _, err = Clone(url, path, &CloneOptions{})
84 if err != nil {
85 t.Fatal("cannot clone remote repo via https, error: ", err)
86 }
87}

Callers

nothing calls this directly

Calls 2

CloneFunction · 0.85
RemoveAllMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…