aboutsummaryrefslogtreecommitdiffstats
path: root/tree_walker_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-26 00:43:17 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-26 00:43:17 +0200
commita97ca42cbce377b5725ecc41e4539fc7e263b90d (patch)
treebea68575b221b80b32fb74e8af584c89802f5586 /tree_walker_test.go
parenta3418c5e0a3c6e925b5a4fb3ecb1d3db56408d1a (diff)
downloadgo-git-a97ca42cbce377b5725ecc41e4539fc7e263b90d.tar.gz
Tree, fix modes
Diffstat (limited to 'tree_walker_test.go')
-rw-r--r--tree_walker_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/tree_walker_test.go b/tree_walker_test.go
index 3b92edf..c03ddb2 100644
--- a/tree_walker_test.go
+++ b/tree_walker_test.go
@@ -2,8 +2,6 @@ package git
import (
"io"
- "os"
- "strconv"
"gopkg.in/src-d/go-git.v4/core"
@@ -105,13 +103,11 @@ func (s *SuiteTreeWalker) TestNext(c *C) {
walker := NewTreeWalker(r, tree)
for k := 0; k < len(t.objs); k++ {
info := t.objs[k]
- mode, err := strconv.ParseInt(info.Mode, 8, 32)
c.Assert(err, IsNil)
name, entry, obj, err := walker.Next()
c.Assert(err, IsNil, Commentf("subtest %d, iter %d, err=%v", i, k, err))
c.Assert(name, Equals, info.Name, Commentf("subtest %d, iter %d, name=%v, expected=%s, stack=%v, base=%v", i, k, name, info.Name, walker.stack, walker.base))
- c.Assert(entry.Mode, Equals, os.FileMode(mode), Commentf("subtest %d, iter %d, entry.Mode=%v expected=%v", i, k, entry.Mode, mode))
c.Assert(obj.Type(), Equals, info.Kind, Commentf("subtest %d, iter %d, obj.Type()=%v expected=%v", i, k, obj.Type(), info.Kind))
c.Assert(entry.Hash.String(), Equals, info.Hash, Commentf("subtest %d, iter %d, entry.Hash=%v, expected=%s", i, k, entry.Hash, info.Hash))
c.Assert(obj.ID().String(), Equals, info.Hash, Commentf("subtest %d, iter %d, obj.ID()=%v, expected=%s", i, k, obj.ID(), info.Hash))