diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-07 02:04:43 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-07 02:04:43 +0200 |
commit | 56adb5be3ad26a0045ea6c6a6d24dafdff15ba1c (patch) | |
tree | bd8ecbb6674f01f03f97fb15083bed0a3e8e021d /utils/fs/os_test.go | |
parent | 98a22e72a808aa0d5dd62339817404fd9e1c4db6 (diff) | |
download | go-git-56adb5be3ad26a0045ea6c6a6d24dafdff15ba1c.tar.gz |
format: packfile new interface
Diffstat (limited to 'utils/fs/os_test.go')
-rw-r--r-- | utils/fs/os_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/fs/os_test.go b/utils/fs/os_test.go index c148265..acc6bdd 100644 --- a/utils/fs/os_test.go +++ b/utils/fs/os_test.go @@ -16,16 +16,16 @@ var _ = Suite(&WritersSuite{}) func (s *WritersSuite) TestOSClient_Create(c *C) { path := getTempDir() - client := NewOSClient(path) + client := NewOS(path) f, err := client.Create("foo") c.Assert(err, IsNil) - c.Assert(f.(*OSFile).file.Name(), Equals, f.GetFilename()) + c.Assert(f.(*OSFile).file.Name(), Equals, f.Filename()) } func (s *WritersSuite) TestOSClient_Write(c *C) { path := getTempDir() - client := NewOSClient(path) + client := NewOS(path) f, err := client.Create("foo") c.Assert(err, IsNil) @@ -39,14 +39,14 @@ func (s *WritersSuite) TestOSClient_Write(c *C) { func (s *WritersSuite) TestOSClient_Close(c *C) { path := getTempDir() - client := NewOSClient(path) + client := NewOS(path) f, err := client.Create("foo") c.Assert(err, IsNil) f.Write([]byte("foo")) c.Assert(f.Close(), IsNil) - wrote, _ := ioutil.ReadFile(f.GetFilename()) + wrote, _ := ioutil.ReadFile(f.Filename()) c.Assert(wrote, DeepEquals, []byte("foo")) } |