wrap.go   A
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
cc 3
eloc 9
dl 0
loc 19
ccs 0
cts 3
cp 0
crap 12
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A errors.As 0 2 1
A errors.Unwrap 0 2 1
A errors.Is 0 2 1
1
package errors
2
3
import (
4
	"errors"
5
)
6
7
// Unwrap only redirects to errors.Unwrap
8
func Unwrap(err error) error {
9
	return errors.Unwrap(err)
10
}
11
12
// Is only redirects to errors.Is
13
func Is(err, target error) bool {
14
	return errors.Is(err, target)
15
}
16
17
// As only redirects to errors.As
18
func As(err error, target any) bool {
19
	return errors.As(err, target)
20
}
21