Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 2, 2024
1 parent d28fbb9 commit b8c9ba8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/s3lib/s3lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,12 @@ func TestBucketAndPrefixFromFilePath(t *testing.T) {
assert.Equal(t, "bucket", bucket)
assert.Equal(t, "prefix", prefix)
}
{
// S3 prefix long
bucket, prefix, err := BucketAndPrefixFromFilePath("s3://bucket/prefix/long")
assert.NoError(t, err)
assert.Equal(t, "bucket", bucket)
assert.Equal(t, "prefix/long", prefix)
}
}
}

0 comments on commit b8c9ba8

Please sign in to comment.