mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-31 19:17:30 +08:00
add a test case
This commit is contained in:
parent
d29fccc521
commit
f3d708d3b6
@ -14,6 +14,18 @@ func TestToBreadcrumb(t *testing.T) {
|
|||||||
args args
|
args args
|
||||||
wantCrumbs []Breadcrumb
|
wantCrumbs []Breadcrumb
|
||||||
}{
|
}{
|
||||||
|
{
|
||||||
|
name: "empty",
|
||||||
|
args: args{
|
||||||
|
fullpath: "",
|
||||||
|
},
|
||||||
|
wantCrumbs: []Breadcrumb{
|
||||||
|
{
|
||||||
|
Name: "/",
|
||||||
|
Link: "/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "test1",
|
name: "test1",
|
||||||
args: args{
|
args: args{
|
||||||
|
Loading…
Reference in New Issue
Block a user