Skip to content

refined the code

Codecov / codecov/patch failed Oct 11, 2024 in 1s

64.43% of diff hit (target 80.00%)

View this Pull Request on Codecov

64.43% of diff hit (target 80.00%)

Annotations

Check warning on line 39 in cmd/oras/internal/display/content/manifest_index.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/content/manifest_index.go#L39

Added line #L39 was not covered by tests

Check warning on line 37 in cmd/oras/internal/display/metadata/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/discard.go#L36-L37

Added lines #L36 - L37 were not covered by tests

Check warning on line 52 in cmd/oras/internal/display/metadata/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/discard.go#L51-L52

Added lines #L51 - L52 were not covered by tests

Check warning on line 57 in cmd/oras/internal/display/metadata/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/discard.go#L56-L57

Added lines #L56 - L57 were not covered by tests

Check warning on line 67 in cmd/oras/internal/display/metadata/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/discard.go#L66-L67

Added lines #L66 - L67 were not covered by tests

Check warning on line 81 in cmd/oras/internal/display/metadata/text/manifest_index.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/text/manifest_index.go#L81

Added line #L81 was not covered by tests

Check warning on line 87 in cmd/oras/internal/display/metadata/text/manifest_index.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/metadata/text/manifest_index.go#L87

Added line #L87 was not covered by tests

Check warning on line 105 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L104-L105

Added lines #L104 - L105 were not covered by tests

Check warning on line 110 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L109-L110

Added lines #L109 - L110 were not covered by tests

Check warning on line 115 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L114-L115

Added lines #L114 - L115 were not covered by tests

Check warning on line 120 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L119-L120

Added lines #L119 - L120 were not covered by tests

Check warning on line 125 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L124-L125

Added lines #L124 - L125 were not covered by tests

Check warning on line 130 in cmd/oras/internal/display/status/discard.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/discard.go#L129-L130

Added lines #L129 - L130 were not covered by tests

Check warning on line 215 in cmd/oras/internal/display/status/text.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/text.go#L214-L215

Added lines #L214 - L215 were not covered by tests

Check warning on line 221 in cmd/oras/internal/display/status/text.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/text.go#L219-L221

Added lines #L219 - L221 were not covered by tests

Check warning on line 223 in cmd/oras/internal/display/status/text.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/text.go#L223

Added line #L223 was not covered by tests

Check warning on line 112 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L112

Added line #L112 was not covered by tests

Check warning on line 132 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L132

Added line #L132 was not covered by tests

Check warning on line 135 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L135

Added line #L135 was not covered by tests

Check warning on line 139 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L139

Added line #L139 was not covered by tests

Check warning on line 149 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L149

Added line #L149 was not covered by tests

Check warning on line 159 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L159

Added line #L159 was not covered by tests

Check warning on line 209 in cmd/oras/root/manifest/index/create.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L209

Added line #L209 was not covered by tests

Check warning on line 144 in cmd/oras/root/manifest/index/update.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/update.go#L144

Added line #L144 was not covered by tests

Check warning on line 148 in cmd/oras/root/manifest/index/update.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/manifest/index/update.go#L148

Added line #L148 was not covered by tests