diff options
author | Sergio Arbeo <serabe@gmail.com> | 2016-12-19 10:42:14 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-19 10:42:14 +0100 |
commit | 1eb39394cdf09b26eb2f5c98225fb2912980e61f (patch) | |
tree | 25e7b370498733aba66688c5d53c29fcef6aa21c /utils/fs/os/os_test.go | |
parent | c9353b2bd7c1cbdf8f78dad6deac64ed2f2ed9eb (diff) | |
download | go-git-1eb39394cdf09b26eb2f5c98225fb2912980e61f.tar.gz |
Extract billy (#173)
* Extract billy
Billy is a new library directly extracted from go-git. It abstract
several storages systems in a filesystem interface.
More in github.com/src-d/billy
* Fix grouping in imports block
* Update billy to v1
* Re-remove fs_implementation example
Diffstat (limited to 'utils/fs/os/os_test.go')
-rw-r--r-- | utils/fs/os/os_test.go | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/utils/fs/os/os_test.go b/utils/fs/os/os_test.go deleted file mode 100644 index 5e8f5c1..0000000 --- a/utils/fs/os/os_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package os_test - -import ( - "io/ioutil" - stdos "os" - "path/filepath" - "testing" - - . "gopkg.in/check.v1" - "gopkg.in/src-d/go-git.v4/utils/fs/os" - "gopkg.in/src-d/go-git.v4/utils/fs/test" -) - -func Test(t *testing.T) { TestingT(t) } - -type OSSuite struct { - test.FilesystemSuite - path string -} - -var _ = Suite(&OSSuite{}) - -func (s *OSSuite) SetUpTest(c *C) { - s.path, _ = ioutil.TempDir(stdos.TempDir(), "go-git-os-fs-test") - s.FilesystemSuite.Fs = os.New(s.path) -} -func (s *OSSuite) TearDownTest(c *C) { - err := stdos.RemoveAll(s.path) - c.Assert(err, IsNil) -} - -func (s *OSSuite) TestOpenDoesNotCreateDir(c *C) { - _, err := s.Fs.Open("dir/non-existent") - c.Assert(err, NotNil) - _, err = stdos.Stat(filepath.Join(s.path, "dir")) - c.Assert(stdos.IsNotExist(err), Equals, true) -} |