aboutsummaryrefslogtreecommitdiffstats
path: root/fixtures
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 /fixtures
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 'fixtures')
-rw-r--r--fixtures/fixtures.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fixtures/fixtures.go b/fixtures/fixtures.go
index 72b4f1c..15f0e02 100644
--- a/fixtures/fixtures.go
+++ b/fixtures/fixtures.go
@@ -11,6 +11,7 @@ import (
"gopkg.in/check.v1"
"gopkg.in/src-d/go-git.v4/core"
"gopkg.in/src-d/go-git.v4/utils/fs"
+ osfs "gopkg.in/src-d/go-git.v4/utils/fs/os"
)
var RootFolder = ""
@@ -161,7 +162,7 @@ func (f *Fixture) DotGit() fs.Filesystem {
}
folders = append(folders, path)
- return fs.NewOS(path)
+ return osfs.NewOS(path)
}
type Fixtures []*Fixture