Skip to content

Model cadence's Future.Get as an error-return non-nil-arg hook#427

Merged
yuxincs merged 1 commit into
mainfrom
yuxincs/model-cadence-future-get
Jun 17, 2026
Merged

Model cadence's Future.Get as an error-return non-nil-arg hook#427
yuxincs merged 1 commit into
mainfrom
yuxincs/model-cadence-future-get

Conversation

@yuxincs

@yuxincs yuxincs commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Add error-return hook modeling for cadence's Future.Get(ctx, &v): when the returned error is checked to be nil, the value pointed to by &v is treated as non-nil, mirroring the existing json/xml Unmarshal modeling. Includes minimal cadence stubs (internal + workflow alias) and inference-enabled test cases.

Add error-return hook modeling for cadence's `Future.Get(ctx, &v)`: when the
returned error is checked to be nil, the value pointed to by `&v` is treated as
non-nil, mirroring the existing json/xml `Unmarshal` modeling. Includes minimal
cadence stubs (internal + workflow alias) and inference-enabled test cases.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yuxincs yuxincs enabled auto-merge (squash) June 17, 2026 20:41
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.26%. Comparing base (d3e528f) to head (3a27406).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #427   +/-   ##
=======================================
  Coverage   87.26%   87.26%           
=======================================
  Files          74       74           
  Lines        8444     8444           
=======================================
  Hits         7369     7369           
  Misses        876      876           
  Partials      199      199           

☔ 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

Copy link
Copy Markdown

Golden Test

Note

✅ NilAway errors reported on standard libraries are identical.

2187 errors on base branch (main, d3e528f)
2187 errors on test branch (937979a)

@yuxincs yuxincs merged commit 01ab7e3 into main Jun 17, 2026
9 checks passed
@yuxincs yuxincs deleted the yuxincs/model-cadence-future-get branch June 17, 2026 21:18
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