- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPathErrorUnwrap (0.29 sec)
-
src/os/error_test.go
t.Fatalf("open ErrPathNUL: %s", err) } f2.Close() f2, err = os.OpenFile(f.Name()+"\x00", os.O_RDWR, 0600) if err == nil { f2.Close() t.Fatal("Open should have failed") } } func TestPathErrorUnwrap(t *testing.T) { pe := &fs.PathError{Err: fs.ErrInvalid} if !errors.Is(pe, fs.ErrInvalid) { t.Error("errors.Is failed, wanted success") } } type myErrorIs struct{ error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 00:41:52 UTC 2023 - 4.9K bytes - Viewed (0)