aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
commit2ed3474ab8e52c98a87e390d5128d45d693a115d (patch)
tree6f136c2508c22f6b5146ef08c49821a45a5f2357 /common_test.go
parent5b13c1a2e55cb442484d9c7b45389f422b110eec (diff)
downloadgo-git-2ed3474ab8e52c98a87e390d5128d45d693a115d.tar.gz
ForEach review and Commit.Tree err return
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/common_test.go b/common_test.go
index 6239afe..dbacddd 100644
--- a/common_test.go
+++ b/common_test.go
@@ -18,12 +18,18 @@ import (
func Test(t *testing.T) { TestingT(t) }
-type BaseSuite struct{}
+type BaseSuite struct {
+ Repository *Repository
+}
func (s *BaseSuite) SetUpTest(c *C) {
clients.InstallProtocol("mock", func(end common.Endpoint) common.GitUploadPackService {
return &MockGitUploadPackService{endpoint: end}
})
+
+ s.Repository = NewMemoryRepository()
+ err := s.Repository.Clone(&CloneOptions{URL: RepositoryFixture})
+ c.Assert(err, IsNil)
}
const RepositoryFixture = "mock://formats/packfile/fixtures/git-fixture.ref-delta"