Skip to content

Commit

Permalink
set cov threshold to 80
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Jan 20, 2025
1 parent d1bfaee commit 60235a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ coverage:
status:
project:
default:
target: 75%
target: 80%
if_ci_failed: error
patch:
default:
Expand Down
1 change: 1 addition & 0 deletions registry/remote/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,7 @@ func (s *manifestStore) generateDescriptor(resp *http.Response, ref registry.Ref
// calculateDigestFromResponse calculates the actual digest of the response body
// taking care not to destroy it in the process.
func calculateDigestFromResponse(resp *http.Response, maxMetadataBytes int64) (digest.Digest, error) {
// TODO: move this to another PR
if resp.Body == nil {
return "", fmt.Errorf("%s %q: response body is nil", resp.Request.Method, resp.Request.URL)
}
Expand Down

0 comments on commit 60235a9

Please sign in to comment.