(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func TestListRemotes(t *testing.T) { |
| 23 | t.Parallel() |
| 24 | repo := createTestRepo(t) |
| 25 | defer cleanupTestRepo(t, repo) |
| 26 | |
| 27 | remote, err := repo.Remotes.Create("test", "git://foo/bar") |
| 28 | checkFatal(t, err) |
| 29 | defer remote.Free() |
| 30 | |
| 31 | expected := []string{ |
| 32 | "test", |
| 33 | } |
| 34 | |
| 35 | actual, err := repo.Remotes.List() |
| 36 | checkFatal(t, err) |
| 37 | |
| 38 | compareStringList(t, expected, actual) |
| 39 | } |
| 40 | |
| 41 | func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) error { |
| 42 | if hostname != "github.com" { |
nothing calls this directly
no test coverage detected
searching dependent graphs…