aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer2/filer_test.go')
-rw-r--r--weed/filer2/filer_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/weed/filer2/filer_test.go b/weed/filer2/filer_test.go
deleted file mode 100644
index bafc25cf0..000000000
--- a/weed/filer2/filer_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package filer2
-
-import (
- "testing"
- "path/filepath"
- "fmt"
-)
-
-func TestRecursion(t *testing.T) {
- fullPath := "/home/chris/some/file/abc.jpg"
- expected := []string{
- "/", "home",
- "/home", "chris",
- "/home/chris", "some",
- "/home/chris/some", "file",
- }
-
- dir, _ := filepath.Split(fullPath)
-
- i := 0
-
- recursivelyEnsureDirectory(dir, func(parent, name string) error {
- if parent != expected[i] || name != expected[i+1] {
- t.Errorf("recursive directory is wrong! parent=%s dirName=%s", parent, name)
- }
- fmt.Printf("processing folder %s \t parent=%s\n", name, parent)
- i += 2
- return nil
- })
-}