(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestRemoteLs(t *testing.T) { |
| 108 | t.Parallel() |
| 109 | repo := createTestRepo(t) |
| 110 | defer cleanupTestRepo(t, repo) |
| 111 | |
| 112 | remote, err := repo.Remotes.Create("origin", "https://github.com/libgit2/TestGitRepository") |
| 113 | checkFatal(t, err) |
| 114 | defer remote.Free() |
| 115 | |
| 116 | err = remote.ConnectFetch(nil, nil, nil) |
| 117 | checkFatal(t, err) |
| 118 | |
| 119 | heads, err := remote.Ls() |
| 120 | checkFatal(t, err) |
| 121 | |
| 122 | if len(heads) == 0 { |
| 123 | t.Error("Expected remote heads") |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | func TestRemoteLsFiltering(t *testing.T) { |
| 128 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…