From b543e4e02793a58db25148214ef149cb571792f5 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sat, 12 Dec 2015 03:22:52 +0100 Subject: blame code reorganization, and mutting the test --- common_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'common_test.go') 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)) } } -- cgit