Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Aug 20, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4775      +/-   ##
==========================================
+ Coverage   75.86%   76.36%   +0.50%     
==========================================
  Files         470      530      +60     
  Lines       37301    40443    +3142     
==========================================
+ Hits        28299    30886    +2587     
- Misses       7071     7512     +441     
- Partials     1931     2045     +114     

☔ 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 changed the title refactor(general): rename function to IterateUnreferencedPacks for clarity refactor(general): use testify in content_formatter_test.go Aug 21, 2025
@julio-lopez julio-lopez marked this pull request as ready for review September 12, 2025 01:33
Copilot AI review requested due to automatic review settings September 12, 2025 01:34
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 test code to use the testify library instead of manual error checking and assertions. The changes replace traditional Go testing patterns with testify's require and assert functions for cleaner, more consistent test code.

Key changes:

  • Replace manual error checking with require.NoError() and require.NoErrorf()
  • Replace manual byte slice comparisons with assert.Equal() and require.Equalf()
  • Simplify test logic by removing complex goroutine-based flushing in favor of a simple loop

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
repo/content/content_manager_test.go Refactors parallel write test to use testify assertions and simplifies flushing logic
repo/content/content_formatter_test.go Converts manual error checks and comparisons to testify assertions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


fop, err := format.NewFormattingOptionsProvider(f, nil)
assert.NoError(t, err)
require.NoError(t, err)
Copy link

Copilot AI Sep 12, 2025

Choose a reason for hiding this comment

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

[nitpick] This change from assert.NoError to require.NoError is inconsistent with the pattern used elsewhere in this function. Since this is a helper function that creates a format provider, using require is appropriate as failure should stop test execution, but the original assert was also valid. Consider maintaining consistency with the assertion style used in the rest of the test.

Copilot uses AI. Check for mistakes.
@julio-lopez julio-lopez merged commit afe9c45 into kopia:master Sep 12, 2025
27 checks passed
@julio-lopez julio-lopez deleted the refactor/ren-func branch September 12, 2025 01:35
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