Skip to content

🌱 (cleanup): Centralize the utils func under the test/utils directories #1742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

camilamacedo86
Copy link
Contributor

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@camilamacedo86 camilamacedo86 requested a review from a team as a code owner February 11, 2025 13:46
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit c4c6da2
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/67ab9c210f7f2a00088b12a5
😎 Deploy Preview https://deploy-preview-1742--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@camilamacedo86 camilamacedo86 force-pushed the remove-func-exported-unecessary branch from ad34ffb to 183a795 Compare February 11, 2025 13:51
@camilamacedo86 camilamacedo86 changed the title 🌱 (cleanup): Remove export of func from the tests since it is not required 🌱 (cleanup): Centralize the utils func under the test/utils directories Feb 11, 2025
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (9be7693) to head (c4c6da2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1742      +/-   ##
==========================================
- Coverage   67.39%   67.34%   -0.06%     
==========================================
  Files          61       61              
  Lines        5236     5236              
==========================================
- Hits         3529     3526       -3     
- Misses       1447     1449       +2     
- Partials      260      261       +1     
Flag Coverage Δ
e2e 52.19% <ø> (-0.08%) ⬇️
unit 55.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -14,6 +14,7 @@ import (
"k8s.io/apimachinery/pkg/types"

catalogdv1 "github.com/operator-framework/operator-controller/catalogd/api/v1"
"github.com/operator-framework/operator-controller/test/utils"
Copy link
Member

Choose a reason for hiding this comment

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

nitpick : can we import this as testutil? because we already have internal/util in code.

@@ -21,7 +21,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"

catalogdv1 "github.com/operator-framework/operator-controller/catalogd/api/v1"
catalogde2e "github.com/operator-framework/operator-controller/test/catalogd-e2e"
"github.com/operator-framework/operator-controller/test/utils"
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

nitpick : can we import this as testutil? because we already have internal/util in code.

@camilamacedo86 camilamacedo86 force-pushed the remove-func-exported-unecessary branch from 183a795 to 2de594c Compare February 11, 2025 18:50
Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2025
@LalatenduMohanty LalatenduMohanty added this pull request to the merge queue Feb 11, 2025
Merged via the queue into operator-framework:main with commit 6dace7c Feb 11, 2025
19 of 21 checks passed
@camilamacedo86 camilamacedo86 deleted the remove-func-exported-unecessary branch February 11, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants