diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-06 03:41:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-06 05:44:04 +0900 |
| commit | dfd26abf6c171fb7fb92ffd0091b539f38fcaf9c (patch) | |
| tree | 4ef76541696998583d4b6329563a928d0d79128a /internal/pkg/ir_test.go | |
| parent | 617ee21647ef86be67e37a3df2413d08c6658799 (diff) | |
internal/pkg: improve output measuring
This significantly improves readability and maintainability.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/ir_test.go')
| -rw-r--r-- | internal/pkg/ir_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
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) |
