diff options
author | Antonio Navarro Perez <antnavper@gmail.com> | 2016-12-16 19:30:36 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-16 19:30:36 +0100 |
commit | 950676c36030a8796c0a69a8aae606ff1f448b03 (patch) | |
tree | 8edfd1baa31e83a396d263c2d0fed1a4d09a83dc /plumbing/format/packfile/delta_test.go | |
parent | c49d8e374443180ff68404c904ccad5d87f9073e (diff) | |
download | go-git-950676c36030a8796c0a69a8aae606ff1f448b03.tar.gz |
packfile: delta selection logic (#182)
* packfile: delta selection logic
- Implemented logic to assign deltas to objects
* Requested changes
* Improved tests and fix errors
Diffstat (limited to 'plumbing/format/packfile/delta_test.go')
-rw-r--r-- | plumbing/format/packfile/delta_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/plumbing/format/packfile/delta_test.go b/plumbing/format/packfile/delta_test.go index 4ef9b70..43253b0 100644 --- a/plumbing/format/packfile/delta_test.go +++ b/plumbing/format/packfile/delta_test.go @@ -12,11 +12,6 @@ type DeltaSuite struct { var _ = Suite(&DeltaSuite{}) -type piece struct { - val string - times int -} - type deltaTest struct { description string base []piece @@ -80,14 +75,3 @@ func (s *DeltaSuite) TestAddDelta(c *C) { c.Assert(result, DeepEquals, targetBuf) } } - -func genBytes(elements []piece) []byte { - var result []byte - for _, e := range elements { - for i := 0; i < e.times; i++ { - result = append(result, e.val...) - } - } - - return result -} |