aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/decoder_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/packfile/decoder_test.go')
-rw-r--r--plumbing/format/packfile/decoder_test.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/plumbing/format/packfile/decoder_test.go b/plumbing/format/packfile/decoder_test.go
index b5bc7b7..4fe9b5e 100644
--- a/plumbing/format/packfile/decoder_test.go
+++ b/plumbing/format/packfile/decoder_test.go
@@ -5,7 +5,6 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/cache"
- "gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"
"gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
"gopkg.in/src-d/go-git.v4/plumbing/storer"
"gopkg.in/src-d/go-git.v4/storage/filesystem"
@@ -47,6 +46,7 @@ func (s *ReaderSuite) TestDecode(c *C) {
})
}
+/*
func (s *ReaderSuite) TestDecodeByTypeRefDelta(c *C) {
f := fixtures.Basic().ByTag("ref-delta").One()
@@ -101,7 +101,9 @@ func (s *ReaderSuite) TestDecodeByTypeRefDeltaError(c *C) {
})
}
+*/
+/*
func (s *ReaderSuite) TestDecodeByType(c *C) {
ts := []plumbing.ObjectType{
plumbing.CommitObject,
@@ -140,6 +142,8 @@ func (s *ReaderSuite) TestDecodeByType(c *C) {
}
})
}
+*/
+
func (s *ReaderSuite) TestDecodeByTypeConstructor(c *C) {
f := fixtures.Basic().ByTag("packfile").One()
storage := memory.NewStorage()
@@ -280,6 +284,7 @@ var expectedHashes = []string{
"7e59600739c96546163833214c36459e324bad0a",
}
+/*
func (s *ReaderSuite) TestDecodeCRCs(c *C) {
f := fixtures.Basic().ByTag("ofs-delta").One()
@@ -366,7 +371,7 @@ func (s *ReaderSuite) TestSetIndex(c *C) {
idxf := d.Index().ToIdxFile()
c.Assert(idxf.Entries, HasLen, 1)
c.Assert(idxf.Entries[0].Offset, Equals, uint64(42))
-}
+}*/
func assertObjects(c *C, s storer.EncodedObjectStorer, expects []string) {
@@ -385,6 +390,7 @@ func assertObjects(c *C, s storer.EncodedObjectStorer, expects []string) {
}
}
+/*
func getIndexFromIdxFile(r io.Reader) *packfile.Index {
idxf := idxfile.NewIdxfile()
d := idxfile.NewDecoder(r)
@@ -393,4 +399,4 @@ func getIndexFromIdxFile(r io.Reader) *packfile.Index {
}
return packfile.NewIndexFromIdxFile(idxf)
-}
+}*/