Skip to content

chore: improve merge test #5861

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

chore: improve merge test #5861

wants to merge 4 commits into from

Conversation

zirain
Copy link
Member

@zirain zirain commented Apr 30, 2025

No description provided.

@zirain zirain requested a review from a team as a code owner April 30, 2025 04:22
@arkodg arkodg added this to the v1.4.0 milestone Apr 30, 2025
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 65.38%. Comparing base (68a2713) to head (94516ef).

Files with missing lines Patch % Lines
internal/utils/test/flags.go 0.00% 2 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5861      +/-   ##
==========================================
- Coverage   65.41%   65.38%   -0.03%     
==========================================
  Files         222      223       +1     
  Lines       35643    35645       +2     
==========================================
- Hits        23315    23307       -8     
- Misses      10882    10893      +11     
+ Partials     1446     1445       -1     

☔ 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.

zirain added 4 commits April 30, 2025 12:47
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
for _, mergeType := range []egv1a1.MergeType{egv1a1.StrategicMerge, egv1a1.JSONMerge} {
t.Run(fmt.Sprintf("%s/%s", mergeType, tc.name), func(t *testing.T) {
got, err := Merge[*egv1a1.BackendTrafficPolicy](tc.original, tc.patch, mergeType)
t.Run(fmt.Sprintf("%s/%s", mergeType, caseName), func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

testdata is currently flat, prefer current state

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.

2 participants