MCPcopy
hub / github.com/cilium/ebpf / Is

Method Is

internal/unix/errno_windows.go:59–71  ·  view source on GitHub ↗
(target error)

Source from the content-addressed store, hash-verified

57}
58
59func (e Errno) Is(target error) bool {
60 switch target {
61 case os.ErrPermission:
62 return e == EACCES || e == EPERM
63 case os.ErrExist:
64 return e == EEXIST || e == ENOTEMPTY
65 case os.ErrNotExist:
66 return e == ENOENT
67 case errors.ErrUnsupported:
68 return e == ENOSYS || e == ENOTSUP || e == EOPNOTSUPP
69 }
70 return false
71}
72
73func (e Errno) Temporary() bool {
74 return e == EINTR || e == EMFILE || e == ENFILE || e.Timeout()

Callers 15

helpers_test.goFile · 0.45
newMapWithOptionsFunction · 0.45
createMapMethod · 0.45
handleMapCreateErrorFunction · 0.45
LookupBytesMethod · 0.45
lookupMethod · 0.45
NextKeyBytesMethod · 0.45
nextKeyMethod · 0.45
guessNonExistentKeyMethod · 0.45
batchLookupMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestBatchAPIMapDeleteFunction · 0.36
TestMapCloseFunction · 0.36
TestBatchMapWithLockFunction · 0.36
TestMapWithLockFunction · 0.36
TestMapPinFlagsFunction · 0.36
TestMapQueueFunction · 0.36
TestIterateEmptyMapFunction · 0.36
TestNotExistFunction · 0.36