diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e2351a2..116d5261 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,5 +98,5 @@ jobs: coverage-safe.out \ coverage-race.out \ coverage-race-safe.out | - egrep -v '^github\.com/maxatome/go-testdeep/internal/json/parser\.go:' > coverage.out + egrep -v '^github\.com/maxatome/go-testdeep/internal/(json/parser\.go:|test/)' > coverage.out goveralls -coverprofile=coverage.out -service=github diff --git a/internal/location/location.go b/internal/location/location.go index bbe43f50..1f89b6fc 100644 --- a/internal/location/location.go +++ b/internal/location/location.go @@ -42,11 +42,7 @@ func New(callDepth int) (loc Location, ok bool) { loc.File = loc.File[index+1:] } - pc, _, _, ok := runtime.Caller(callDepth) - if !ok { - return - } - + pc, _, _, _ := runtime.Caller(callDepth) loc.Func = runtime.FuncForPC(pc).Name() return }