diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-12-12 03:22:52 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-12-12 03:22:52 +0100 |
commit | b543e4e02793a58db25148214ef149cb571792f5 (patch) | |
tree | d68b7e33aba06f67d3c3e301b4a68f09de0ded6a /common_test.go | |
parent | c22c181f70e0afb294513315e9975b9f3f4c1d39 (diff) | |
download | go-git-b543e4e02793a58db25148214ef149cb571792f5.tar.gz |
blame code reorganization, and mutting the test
Diffstat (limited to 'common_test.go')
-rw-r--r-- | common_test.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/common_test.go b/common_test.go index 4c48419..44b76ee 100644 --- a/common_test.go +++ b/common_test.go @@ -44,6 +44,15 @@ func (s *MockGitUploadPackService) Fetch(*common.GitUploadPackRequest) (io.ReadC return r, nil } +var fixtureRepos = [...]struct { + url string + packfile string +}{ + {"https://github.com/tyba/git-fixture.git", "formats/packfile/fixtures/git-fixture.ofs-delta"}, + {"https://github.com/jamesob/desk.git", "formats/packfile/fixtures/jamesob-desk.pack"}, + {"https://github.com/spinnaker/spinnaker.git", "formats/packfile/fixtures/spinnaker-spinnaker.pack"}, +} + type SuiteCommon struct{} var _ = Suite(&SuiteCommon{}) @@ -65,7 +74,7 @@ var countLinesTests = [...]struct { func (s *SuiteCommon) TestCountLines(c *C) { for i, t := range countLinesTests { - o := CountLines(t.i) + o := countLines(t.i) c.Assert(o, Equals, t.e, Commentf("subtest %d, input=%q", i, t.i)) } } |