Skip to content

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.

add a test case

chrisluf3d708d3b6de
diff --git a/weed/server/filer_ui/breadcrumb_test.go b/weed/server/filer_ui/breadcrumb_test.go
index aac3c7de67..6e42541cb3 100644
--- a/weed/server/filer_ui/breadcrumb_test.go
+++ b/weed/server/filer_ui/breadcrumb_test.go
@@ -14,6 +14,18 @@ func TestToBreadcrumb(t *testing.T) {
args args
wantCrumbs []Breadcrumb
}{
+ {
+ name: "empty",
+ args: args{
+ fullpath: "",
+ },
+ wantCrumbs: []Breadcrumb{
+ {
+ Name: "/",
+ Link: "/",
+ },
+ },
+ },
{
name: "test1",
args: args{