wrap exists to test errors.As traversal through fmt.Errorf chains — real callers will commonly wrap with context.
(err error)
| 266 | // wrap exists to test errors.As traversal through fmt.Errorf chains — |
| 267 | // real callers will commonly wrap with context. |
| 268 | func wrap(err error) error { |
| 269 | type wrapper struct{ inner error } |
| 270 | return &wrappedErr{inner: err} |
| 271 | } |
| 272 | |
| 273 | type wrappedErr struct{ inner error } |
| 274 |
no outgoing calls
no test coverage detected