Closed endorama closed 1 week ago
Attention: Patch coverage is 74.07407%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 58.23%. Comparing base (
b3a9eaf
) to head (e961763
). Report is 51 commits behind head on main.:exclamation: Current head e961763 differs from pull request most recent head 82301b7
Please upload reports for the commit 82301b7 to get more accurate results.
Files | Patch % | Lines |
---|---|---|
internal/backup/perform.go | 74.07% | 7 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
backup.Perform was using os.Chdir, which changes working directory for the entire process. This in practice did not have any effect, but is the potential source of future bugs as it's an unexpected occurrence.
Solve this by restoring working directory after executing the backup. A dedicated test case is provided.