Skip to content

fix(fieldprop): check presence for incell struct/list/map/union#351

Merged
wenchy merged 5 commits intomasterfrom
check-presence-for-incell
Feb 6, 2026
Merged

fix(fieldprop): check presence for incell struct/list/map/union#351
wenchy merged 5 commits intomasterfrom
check-presence-for-incell

Conversation

@Kybxd
Copy link
Collaborator

@Kybxd Kybxd commented Feb 4, 2026

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 74.02%. Comparing base (508d6c4) to head (cc65567).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/confgen/parser.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #351      +/-   ##
==========================================
+ Coverage   73.89%   74.02%   +0.12%     
==========================================
  Files          87       87              
  Lines        8595     8599       +4     
==========================================
+ Hits         6351     6365      +14     
+ Misses       1690     1685       -5     
+ Partials      554      549       -5     

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

@Kybxd Kybxd changed the title fix(fieldprop): check presence for incell struct/list/map fix(fieldprop): check presence for incell struct/list/map/union Feb 4, 2026
Comment on lines 417 to 421
// check presence
if err := fieldprop.CheckPresence(field.opts.Prop, false); err != nil {
return err
}
return nil
Copy link
Member

Choose a reason for hiding this comment

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

Clean code, just return fieldprop.CheckPresence(field.opts.Prop, false)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Kybxd Kybxd force-pushed the check-presence-for-incell branch from 57a6e64 to dc66d61 Compare February 5, 2026 11:26
Comment on lines 765 to 768
// check presence
if err := fieldprop.CheckPresence(field.opts.Prop, false); err != nil {
return false, err
}
Copy link
Member

Choose a reason for hiding this comment

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

Just replace three line by return false, fieldprop.CheckPresence(field.opts.Prop, false)

@Kybxd Kybxd force-pushed the check-presence-for-incell branch from dc66d61 to 15cbb76 Compare February 6, 2026 02:46
@wenchy wenchy merged commit b80914b into master Feb 6, 2026
11 checks passed
@wenchy wenchy deleted the check-presence-for-incell branch February 6, 2026 03:33
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.

fieldprop(present): present:true not works for message field

2 participants