mirror of
https://github.com/restic/restic.git
synced 2026-07-17 04:34:53 +00:00
restic: test that sorting nil blobs slices works
This commit is contained in:
@@ -53,3 +53,8 @@ func TestBlobsSort(t *testing.T) {
|
||||
rtest.Equals(t, uint(50), blobs[1].Offset)
|
||||
rtest.Equals(t, uint(100), blobs[2].Offset)
|
||||
}
|
||||
|
||||
func TestBlobsSortNilSlice(t *testing.T) {
|
||||
var blobs Blobs
|
||||
blobs.Sort()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user