diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-14 05:00:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-14 05:00:09 +0900 |
| commit | 332d90d6c77ff6c8204f84e5213f8a1f9dc44745 (patch) | |
| tree | 1bf586d823b5b628c7f398144aa5588a1a55e193 /container/absolute_test.go | |
| parent | 99ac96511bed17f48d908db3d00a1f48579ba011 (diff) | |
container/path: remove unused path
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/absolute_test.go')
| -rw-r--r-- | container/absolute_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/container/absolute_test.go b/container/absolute_test.go index 014ace81..b3682516 100644 --- a/container/absolute_test.go +++ b/container/absolute_test.go @@ -113,6 +113,10 @@ func TestCodecAbsolute(t *testing.T) { gob, sGob string json, sJson string }{ + {"nil", nil, nil, + "\x00", "\x00", + `null`, `{"val":null,"magic":3236757504}`}, + {"good", MustAbs("/etc"), nil, "\t\x7f\x05\x01\x02\xff\x82\x00\x00\x00\b\xff\x80\x00\x04/etc", @@ -135,6 +139,11 @@ func TestCodecAbsolute(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { t.Run("gob", func(t *testing.T) { + if tc.gob == "\x00" && tc.sGob == "\x00" { + // these values mark the current test to skip gob + return + } + t.Run("encode", func(t *testing.T) { // encode is unchecked if errors.Is(tc.wantErr, syscall.EINVAL) { |
