- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTestFSWrappedErrors (0.26 sec)
-
src/testing/fstest/testfs_test.go
if !fs.ValidPath(name) { return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid} } return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrPermission} } func TestTestFSWrappedErrors(t *testing.T) { err := TestFS(failPermFS{}) if err == nil { t.Fatal("error expected") } t.Logf("Error (expecting wrapped fs.ErrPermission):\n%v", err) if !errors.Is(err, fs.ErrPermission) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.9K bytes - Viewed (0)