aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fs_implementation/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fs_implementation/main_test.go')
-rw-r--r--examples/fs_implementation/main_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/fs_implementation/main_test.go b/examples/fs_implementation/main_test.go
index 9683b1b..ed56cf1 100644
--- a/examples/fs_implementation/main_test.go
+++ b/examples/fs_implementation/main_test.go
@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
func setUp() {
var err error
- repo, err = tgz.Extract("../../storage/filesystem/internal/gitdir/fixtures/spinnaker-gc.tgz")
+ repo, err = tgz.Extract("../../storage/filesystem/internal/dotgit/fixtures/spinnaker-gc.tgz")
if err != nil {
panic(err)
}
@@ -36,7 +36,7 @@ func tearDown() {
}
func TestJoin(t *testing.T) {
- fs := newFS("")
+ fs := NewCustomFS("")
for i, test := range [...]struct {
input []string
expected string
@@ -64,7 +64,7 @@ func TestJoin(t *testing.T) {
}
func TestStat(t *testing.T) {
- fs := newFS(filepath.Join(repo, ".git/"))
+ fs := NewCustomFS(filepath.Join(repo, ".git/"))
for i, path := range [...]string{
"index",
"info--refs",
@@ -98,7 +98,7 @@ func TestStat(t *testing.T) {
}
func TestStatErrors(t *testing.T) {
- fs := newFS(filepath.Join(repo, ".git/"))
+ fs := NewCustomFS(filepath.Join(repo, ".git/"))
for i, test := range [...]struct {
input string
errRegExp string
@@ -125,7 +125,7 @@ func TestStatErrors(t *testing.T) {
}
func TestOpen(t *testing.T) {
- fs := newFS(filepath.Join(repo, ".git/"))
+ fs := NewCustomFS(filepath.Join(repo, ".git/"))
for i, path := range [...]string{
"index",
"info--refs",
@@ -169,7 +169,7 @@ func TestOpen(t *testing.T) {
}
func TestReadDir(t *testing.T) {
- fs := newFS(filepath.Join(repo, ".git/"))
+ fs := NewCustomFS(filepath.Join(repo, ".git/"))
for i, path := range [...]string{
"info",
".",