aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/index/decoder_test.go
diff options
context:
space:
mode:
authorAlberto Cortés <alberto@sourced.tech>2017-03-01 17:33:15 +0100
committerAlberto Cortés <alberto@sourced.tech>2017-03-01 17:58:23 +0100
commitda704cfac743a91474baf45df226e5ec034146b0 (patch)
tree3b64c2706cc515c83dcfd66e31fc6a8cf919bb1c /plumbing/format/index/decoder_test.go
parent09e4358e03e5eccf5597be9bdcd3ffeab7618fb2 (diff)
downloadgo-git-da704cfac743a91474baf45df226e5ec034146b0.tar.gz
replace os.FileMode use with filemode.FileMode
Diffstat (limited to 'plumbing/format/index/decoder_test.go')
-rw-r--r--plumbing/format/index/decoder_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/plumbing/format/index/decoder_test.go b/plumbing/format/index/decoder_test.go
index 1ffbe75..3a6e0d4 100644
--- a/plumbing/format/index/decoder_test.go
+++ b/plumbing/format/index/decoder_test.go
@@ -3,9 +3,11 @@ package index
import (
"testing"
- . "gopkg.in/check.v1"
- "github.com/src-d/go-git-fixtures"
"srcd.works/go-git.v4/plumbing"
+ "srcd.works/go-git.v4/plumbing/filemode"
+
+ "github.com/src-d/go-git-fixtures"
+ . "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
@@ -53,7 +55,7 @@ func (s *IndexSuite) TestDecodeEntries(c *C) {
c.Assert(e.Size, Equals, uint32(189))
c.Assert(e.Hash.String(), Equals, "32858aad3c383ed1ff0a0f9bdf231d54a00c9e88")
c.Assert(e.Name, Equals, ".gitignore")
- c.Assert(e.Mode.String(), Equals, "-rw-r--r--")
+ c.Assert(e.Mode, Equals, filemode.Regular)
e = idx.Entries[1]
c.Assert(e.Name, Equals, "CHANGELOG")