diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 03:29:05 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 03:29:05 +0200 |
commit | 2ed3474ab8e52c98a87e390d5128d45d693a115d (patch) | |
tree | 6f136c2508c22f6b5146ef08c49821a45a5f2357 /common_test.go | |
parent | 5b13c1a2e55cb442484d9c7b45389f422b110eec (diff) | |
download | go-git-2ed3474ab8e52c98a87e390d5128d45d693a115d.tar.gz |
ForEach review and Commit.Tree err return
Diffstat (limited to 'common_test.go')
-rw-r--r-- | common_test.go | 8 |
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" |