From f3d708d3b6de535b92785b73c34c39e5932f1e8b Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 7 Jul 2024 23:44:32 -0700 Subject: [PATCH] add a test case --- weed/server/filer_ui/breadcrumb_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weed/server/filer_ui/breadcrumb_test.go b/weed/server/filer_ui/breadcrumb_test.go index aac3c7de6..6e42541cb 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{