SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fullpath() test is not needed
Chris Lu5fbcaaf37ab6
diff --git a/weed/filesys/dir_test.go b/weed/filesys/dir_test.godeleted file mode 100644index 49c76eb5e5..0000000000--- a/weed/filesys/dir_test.go+++ /dev/null@@ -1,34 +0,0 @@-package filesys--import (- "testing"-- "github.com/stretchr/testify/assert"-)--func TestDirPath(t *testing.T) {-- p := &Dir{name: "/some"}- p = &Dir{name: "path", parent: p}- p = &Dir{name: "to", parent: p}- p = &Dir{name: "a", parent: p}- p = &Dir{name: "file", parent: p}-- assert.Equal(t, "/some/path/to/a/file", p.FullPath())-- p = &Dir{name: "/some"}- assert.Equal(t, "/some", p.FullPath())-- p = &Dir{name: "/"}- assert.Equal(t, "/", p.FullPath())-- p = &Dir{name: "/"}- p = &Dir{name: "path", parent: p}- assert.Equal(t, "/path", p.FullPath())-- p = &Dir{name: "/"}- p = &Dir{name: "path", parent: p}- p = &Dir{name: "to", parent: p}- assert.Equal(t, "/path/to", p.FullPath())--}