container/path: remove unused path
Some checks failed
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m9s
Test / Hakurei (push) Failing after 3m40s
Test / Sandbox (race detector) (push) Successful in 4m19s
Test / Hpkg (push) Successful in 4m35s
Test / Hakurei (race detector) (push) Successful in 5m23s
Test / Flake checks (push) Has been skipped

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-08-14 05:00:09 +09:00
parent 99ac96511b
commit 332d90d6c7
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
2 changed files with 9 additions and 3 deletions

View File

@ -113,6 +113,10 @@ func TestCodecAbsolute(t *testing.T) {
gob, sGob string gob, sGob string
json, sJson string json, sJson string
}{ }{
{"nil", nil, nil,
"\x00", "\x00",
`null`, `{"val":null,"magic":3236757504}`},
{"good", MustAbs("/etc"), {"good", MustAbs("/etc"),
nil, nil,
"\t\x7f\x05\x01\x02\xff\x82\x00\x00\x00\b\xff\x80\x00\x04/etc", "\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 { for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {
t.Run("gob", 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) { t.Run("encode", func(t *testing.T) {
// encode is unchecked // encode is unchecked
if errors.Is(tc.wantErr, syscall.EINVAL) { if errors.Is(tc.wantErr, syscall.EINVAL) {

View File

@ -78,9 +78,6 @@ var (
AbsFHSProc = &Absolute{FHSProc} AbsFHSProc = &Absolute{FHSProc}
// AbsFHSSys is [FHSSys] as [Absolute]. // AbsFHSSys is [FHSSys] as [Absolute].
AbsFHSSys = &Absolute{FHSSys} AbsFHSSys = &Absolute{FHSSys}
// AbsNonexistent is [Nonexistent] as [Absolute].
AbsNonexistent = &Absolute{Nonexistent}
) )
const ( const (