From a54ac48f60347821063c83ac8b593c9cc43d3a11 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 31 May 2026 16:21:29 +0200 Subject: [PATCH] restic: test that sorting nil blobs slices works --- internal/restic/blob_test.go | 5 +++++ 1 file changed, 5 insertions(+) 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() +}