Merge pull request #31949 from asalkeld/fix-coverage
Automatic merge from submit-queue Ignore troublesome paths that cause coverage to fail **What this PR does / why we need it**: `KUBE_COVER=y make check` currently fails, this patch fixes it. **Which issue this PR fixes** fixes #31691 **Special notes for your reviewer**: None **Release note**: ```release-note NONE ``` This avoids the whole command failing because of errors like the following: ``` # cover k8s.io/kubernetes/pkg/client/restclient cover: internal error: block 268 overlaps block 270 ```
This commit is contained in:
@@ -890,10 +890,11 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu
|
||||
}
|
||||
|
||||
if glog.V(8) {
|
||||
switch {
|
||||
case bytes.IndexFunc(body, func(r rune) bool { return r < 0x0a }) != -1:
|
||||
if bytes.IndexFunc(body, func(r rune) bool {
|
||||
return r < 0x0a
|
||||
}) != -1 {
|
||||
glog.Infof("Response Body:\n%s", hex.Dump(body))
|
||||
default:
|
||||
} else {
|
||||
glog.Infof("Response Body: %s", string(body))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user