errors.As   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
nop 2
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