MCPcopy Index your code
hub / github.com/cockroachdb/errors / TestErrorPredicatesUnix

Function TestErrorPredicatesUnix

oserror/oserror_unix_test.go:27–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestErrorPredicatesUnix(t *testing.T) {
28 tt := testutils.T{T: t}
29
30 tt.Check(IsPermission(errors.Wrap(syscall.EACCES, "woo")))
31 tt.Check(IsExist(errors.Wrap(syscall.ENOTEMPTY, "woo")))
32 tt.Check(IsNotExist(errors.Wrap(syscall.ENOENT, "woo")))
33 tt.Check(IsTimeout(errors.Wrap(syscall.EAGAIN, "woo")))
34}

Callers

nothing calls this directly

Calls 6

CheckMethod · 0.95
WrapFunction · 0.92
IsPermissionFunction · 0.85
IsExistFunction · 0.85
IsNotExistFunction · 0.85
IsTimeoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…