Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tttol committed Jul 1, 2024
1 parent dac544f commit ddd7e38
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/util/breadcrumbs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,26 @@ func TestGenerateBreadcrumbs(t *testing.T) {
expected map[string]interface{}
}{
{
input: "/s3/fuga/fugafuga/aaa.txt",
input: "/fuga/fugafuga/aaa.txt",
expected: map[string]interface{}{
"s3": "/s3",
"fuga": "/s3/fuga",
"fugafuga": "/s3/fuga/fugafuga",
"aaa.txt": "/s3/fuga/fugafuga/aaa.txt?action=dl",
},
},
{
input: "/s3/hoge/fuga/piyo",
input: "/hoge/fuga/piyo",
expected: map[string]interface{}{
"s3": "/s3",
"hoge": "/s3/hoge",
"fuga": "/s3/hoge/fuga",
"piyo": "/s3/hoge/fuga/piyo",
},
},
{
input: "/single",
input: "/s3/hoge",
expected: map[string]interface{}{
"single": "/single",
"s3": "/s3/s3",
"hoge": "/s3/s3/hoge",
},
},
}
Expand Down

0 comments on commit ddd7e38

Please sign in to comment.