diff --git a/internal/restic/blob_test.go b/internal/restic/blob_test.go index 089e3004e..36e045792 100644 --- a/internal/restic/blob_test.go +++ b/internal/restic/blob_test.go @@ -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() +}