Skip to content

feat(struct-init-v2): resolve inline allocation argument projections - #504

Merged
karthikbhata97 merged 1 commit into
mainfrom
push-nrtrlrvkovyq
Aug 8, 2026
Merged

feat(struct-init-v2): resolve inline allocation argument projections#504
karthikbhata97 merged 1 commit into
mainfrom
push-nrtrlrvkovyq

Conversation

@karthikbhata97

Copy link
Copy Markdown
Collaborator

Parameter-sourced projections from inline struct allocations have no assertion-tree path, so their call-scoped result sites lose omitted or explicit field nilability. Resolve selector chains from allocation initializers so nil projections report without affecting non-nil inline arguments.


Stack created with GitHub Stacks CLIGive Feedback 💬

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.00000% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.31%. Comparing base (6c75dfa) to head (24dfd5e).

Files with missing lines Patch % Lines
assertion/function/assertiontree/structinitv2.go 70.00% 11 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #504      +/-   ##
==========================================
- Coverage   90.42%   90.31%   -0.11%     
==========================================
  Files          82       82              
  Lines        9866     9916      +50     
==========================================
+ Hits         8921     8956      +35     
- Misses        701      712      +11     
- Partials      244      248       +4     

☔ View full report in Codecov by Harness.
📢 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.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Golden Test

Note

✅ NilAway errors reported on standard libraries are identical.

2228 errors on base branch (main, 6c75dfa)
2228 errors on test branch (626e39c)

Parameter-sourced projections from inline struct allocations have no assertion-tree path, so their call-scoped result sites lose omitted or explicit field nilability. Resolve selector chains from allocation initializers so nil projections report without affecting non-nil inline arguments.
@karthikbhata97
karthikbhata97 merged commit 4f8d5d1 into main Aug 8, 2026
9 checks passed
@karthikbhata97
karthikbhata97 deleted the push-nrtrlrvkovyq branch August 8, 2026 06:38
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