MCPcopy
hub / github.com/tailscale/tailscale / Is

Method Is

util/multierr/multierr.go:90–97  ·  view source on GitHub ↗

Is reports whether any error in e matches target.

(target error)

Source from the content-addressed store, hash-verified

88
89// Is reports whether any error in e matches target.
90func (e Error) Is(target error) bool {
91 for _, err := range e.errs {
92 if errors.Is(err, target) {
93 return true
94 }
95 }
96 return false
97}
98
99// As finds the first error in e that matches target, and if any is found,
100// sets target to that error value and returns true. Otherwise, it returns false.

Callers 15

TestConnFunction · 0.45
TestListenerCleanupFunction · 0.45
TestFunnelCloseFunction · 0.45
TestListenServiceFunction · 0.45
TestListenServiceCloseFunction · 0.45
TestListenerCloseFunction · 0.45
watchIPNBusMethod · 0.45
authorizeRequestMethod · 0.45
serveAPIAuthMethod · 0.45
getSessionMethod · 0.45
awaitUserAuthMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestConnFunction · 0.36
TestListenerCleanupFunction · 0.36
TestFunnelCloseFunction · 0.36
TestListenServiceFunction · 0.36
TestListenServiceCloseFunction · 0.36
TestListenerCloseFunction · 0.36
TestDERPMeshIsValidFunction · 0.36
checkCanNotSetValueFunction · 0.36
checkCanNotClearValueFunction · 0.36
TestInterfaceCodersFunction · 0.36
TestStdHandler_CanceledFunction · 0.36