From dfd26abf6c171fb7fb92ffd0091b539f38fcaf9c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 6 May 2026 03:41:04 +0900 Subject: internal/pkg: improve output measuring This significantly improves readability and maintainability. Signed-off-by: Ophestra --- internal/pkg/ir_test.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'internal/pkg/ir_test.go') diff --git a/internal/pkg/ir_test.go b/internal/pkg/ir_test.go index de33c74f..5c6c3a2e 100644 --- a/internal/pkg/ir_test.go +++ b/internal/pkg/ir_test.go @@ -3,6 +3,7 @@ package pkg_test import ( "bytes" "io" + "io/fs" "reflect" "testing" @@ -105,9 +106,12 @@ func TestIRRoundtrip(t *testing.T) { if err := <-done; err != nil { t.Fatalf("EncodeAll: error = %v", err) } - }, pkg.MustDecode( - "E4vEZKhCcL2gPZ2Tt59FS3lDng-d_2SKa2i5G_RbDfwGn6EemptFaGLPUDiOa94C", - ), + }, expectsFS{ + ".": {Mode: fs.ModeDir | 0700}, + "checksum": {Mode: fs.ModeDir | 0700}, + "identifier": {Mode: fs.ModeDir | 0700}, + "work": {Mode: fs.ModeDir | 0700}, + }, } } checkWithCache(t, testCasesCache) -- cgit v1.3.1