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

Function TestRemoteConnect

remote_test.go:71–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestRemoteConnect(t *testing.T) {
72 t.Parallel()
73 repo := createTestRepo(t)
74 defer cleanupTestRepo(t, repo)
75
76 remote, err := repo.Remotes.Create("origin", "https://github.com/libgit2/TestGitRepository")
77 checkFatal(t, err)
78 defer remote.Free()
79
80 err = remote.ConnectFetch(nil, nil, nil)
81 checkFatal(t, err)
82}
83
84func TestRemoteConnectOption(t *testing.T) {
85 t.Parallel()

Callers

nothing calls this directly

Calls 6

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
checkFatalFunction · 0.85
ConnectFetchMethod · 0.80
FreeMethod · 0.65
CreateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…