Skip to content

Increase test coverage for handlers

Codecov / codecov/patch failed Aug 9, 2024 in 0s

76.19% of diff hit (target 80.00%)

View this Pull Request on Codecov

76.19% of diff hit (target 80.00%)

Annotations

Check warning on line 77 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#L77

Added line #L77 was not covered by tests

Check warning on line 170 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#L170

Added line #L170 was not covered by tests

Check warning on line 70 in cmd/oras/internal/display/status/tty.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/tty.go#L68-L70

Added lines #L68 - L70 were not covered by tests

Check warning on line 75 in cmd/oras/internal/display/status/tty.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/tty.go#L74-L75

Added lines #L74 - L75 were not covered by tests

Check warning on line 88 in cmd/oras/internal/display/status/tty.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/tty.go#L85-L88

Added lines #L85 - L88 were not covered by tests

Check warning on line 91 in cmd/oras/internal/display/status/tty.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/internal/display/status/tty.go#L91

Added line #L91 was not covered by tests

Check warning on line 156 in cmd/oras/root/attach.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/attach.go#L156

Added line #L156 was not covered by tests

Check warning on line 202 in cmd/oras/root/cp.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/cp.go#L202

Added line #L202 was not covered by tests

Check warning on line 206 in cmd/oras/root/cp.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/oras/root/cp.go#L205-L206

Added lines #L205 - L206 were not covered by tests

Check warning on line 80 in internal/testutils/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/testutils/fetcher.go#L80

Added line #L80 was not covered by tests

Check warning on line 94 in internal/testutils/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/testutils/fetcher.go#L94

Added line #L94 was not covered by tests

Check warning on line 116 in internal/testutils/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/testutils/fetcher.go#L116

Added line #L116 was not covered by tests