Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

  • removes unnecessary cleanup deferred function
  • use require to check expected invariants

Cleanup is done via `t.Setenv(...)`
@julio-lopez julio-lopez requested a review from Copilot November 19, 2025 02:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the TestKopiaRunner test to improve code quality by removing an unnecessary cleanup function and modernizing assertion style using testify/require.

  • Removes redundant deferred environment variable cleanup (handled by t.Setenv)
  • Replaces manual error checking with testify/require assertions

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.07%. Comparing base (cb455c6) to head (ae4a3f9).
⚠️ Report is 772 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5010      +/-   ##
==========================================
+ Coverage   75.86%   78.07%   +2.20%     
==========================================
  Files         470      548      +78     
  Lines       37301    31398    -5903     
==========================================
- Hits        28299    24513    -3786     
+ Misses       7071     4839    -2232     
- Partials     1931     2046     +115     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review November 19, 2025 04:02
Copilot AI review requested due to automatic review settings November 19, 2025 04:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@julio-lopez julio-lopez merged commit 297673b into kopia:master Nov 19, 2025
30 of 31 checks passed
@julio-lopez julio-lopez deleted the poc/nits branch November 19, 2025 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant