restic: test that sorting nil blobs slices works

This commit is contained in:
Michael Eischer
2026-05-31 16:22:58 +02:00
parent 91a6e74fd5
commit a54ac48f60
+5
View File
@@ -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()
}