aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
authorAlberto Cortés <alberto@sourced.tech>2016-01-21 03:29:57 +0100
committerAlberto Cortés <alberto@sourced.tech>2016-01-21 03:29:57 +0100
commitfec62175e8de8ca8daa40683359706c926d9dc2e (patch)
treec6f0e9bdaeeee1da29424a3f6dc764d94244c2a7 /objects_test.go
parent07e4c4368921f73048578f22a14a1c671ec3ba46 (diff)
downloadgo-git-fec62175e8de8ca8daa40683359706c926d9dc2e.tar.gz
performance increase for repos with many files and directories
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/objects_test.go b/objects_test.go
index 1ead65d..bc83cb7 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -53,9 +53,9 @@ func (s *ObjectsSuite) TestParseTree(c *C) {
c.Assert(err, IsNil)
c.Assert(tree.Entries, HasLen, 8)
- c.Assert(tree.Entries[0].Name, Equals, ".gitignore")
- c.Assert(tree.Entries[0].Mode.String(), Equals, "-rw-r--r--")
- c.Assert(tree.Entries[0].Hash.String(), Equals, "32858aad3c383ed1ff0a0f9bdf231d54a00c9e88")
+ c.Assert(tree.Entries[".gitignore"].Name, Equals, ".gitignore")
+ c.Assert(tree.Entries[".gitignore"].Mode.String(), Equals, "-rw-r--r--")
+ c.Assert(tree.Entries[".gitignore"].Hash.String(), Equals, "32858aad3c383ed1ff0a0f9bdf231d54a00c9e88")
count := 0
ch := tree.Files()