aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs/os_test.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2016-10-24 15:14:22 +0200
committerGitHub <noreply@github.com>2016-10-24 15:14:22 +0200
commitd45eb0402b2f3dace2ed1f91ee53e2c591a7ba3c (patch)
tree7e52ed37c12ec51c6efa3c33c0f38d135bd2c122 /utils/fs/os_test.go
parent8cd772a53e8ecd2687b739eea110fa9b179f1e0f (diff)
downloadgo-git-d45eb0402b2f3dace2ed1f91ee53e2c591a7ba3c.tar.gz
utils/fs: move 'os' and 'test' to separate packages. (#93)
* create utils/fs/test package to expose generic test suite to 3rd party fs implementations. * move 'os' to its own package to avoid cyclic dependency (test -> fs -> test, becomes test -> fs, os -> test, os -> fs). * remove TestCreateAndWrite: some of our implementations cannot read a file that was just created, written and not closed yet.
Diffstat (limited to 'utils/fs/os_test.go')
-rw-r--r--utils/fs/os_test.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/utils/fs/os_test.go b/utils/fs/os_test.go
deleted file mode 100644
index e70c19b..0000000
--- a/utils/fs/os_test.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package fs
-
-import (
- "io/ioutil"
- "os"
-
- . "gopkg.in/check.v1"
-)
-
-type OSSuite struct {
- FilesystemSuite
- path string
-}
-
-var _ = Suite(&OSSuite{})
-
-func (s *OSSuite) SetUpTest(c *C) {
- s.path, _ = ioutil.TempDir(os.TempDir(), "go-git-os-fs-test")
- s.FilesystemSuite.fs = NewOS(s.path)
-}
-func (s *OSSuite) TearDownTest(c *C) {
- err := os.RemoveAll(s.path)
- c.Assert(err, IsNil)
-}