Skip to content

Add valueOf golden coverage in Spec.Data.Budget - #7800

Merged
Unisay merged 1 commit into
masterfrom
yura/issue-2242-valueof-golden-gate
Aug 11, 2026
Merged

Add valueOf golden coverage in Spec.Data.Budget#7800
Unisay merged 1 commit into
masterfrom
yura/issue-2242-valueof-golden-gate

Conversation

@Unisay

@Unisay Unisay commented May 27, 2026

Copy link
Copy Markdown
Contributor

Adds a PIR snapshot and four budget goldens for PlutusLedgerApi.V1.Data.Value.valueOf, next to the existing ones for gt, geq, and currencySymbolValueOf. The scenarios pin the cost of a hit on the first, middle, and last outer entry plus a miss, so a regression in valueOf surfaces here instead of downstream in currencySymbolValueOf, assetClassValueOf, or geq.

Follow-up to #7797, which landed the implementation and a differential CEK-vs-Haskell property test but left the compiled shape and cost unpinned.

@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Execution Budget Golden Diff

321c5e5 (master) vs fd2ef05

output

This comment will get updated when changes are made.

@Unisay
Unisay force-pushed the yura/issue-2242-optimal-valueof branch from 0ac70fa to cd7c252 Compare May 28, 2026 11:28
@Unisay
Unisay force-pushed the yura/issue-2242-valueof-golden-gate branch from 592ee78 to 3f78512 Compare May 28, 2026 11:29
@Unisay
Unisay force-pushed the yura/issue-2242-optimal-valueof branch from cd7c252 to 8271c9e Compare May 28, 2026 11:43
@Unisay
Unisay force-pushed the yura/issue-2242-valueof-golden-gate branch from 3f78512 to 614ac9e Compare May 28, 2026 11:43
@Unisay
Unisay force-pushed the yura/issue-2242-optimal-valueof branch from 8271c9e to 613670c Compare May 28, 2026 11:50
@Unisay
Unisay force-pushed the yura/issue-2242-valueof-golden-gate branch from 614ac9e to ef47fc2 Compare May 28, 2026 11:50
@Unisay
Unisay force-pushed the yura/issue-2242-optimal-valueof branch from 613670c to b4d1df4 Compare May 29, 2026 10:35
@Unisay
Unisay force-pushed the yura/issue-2242-valueof-golden-gate branch from ef47fc2 to d97a546 Compare May 29, 2026 10:36
Base automatically changed from yura/issue-2242-optimal-valueof to master June 2, 2026 10:04
Adds a PIR-readable snapshot and four budget snapshots for the new `valueOf`
implementation, registered alongside the existing golden coverage for
`gt`, `geq`, and `currencySymbolValueOf`.

Scenarios:
- valueOf_hit_first: ada-like first-position lookup, exercises short-circuit on the first outer step.
- valueOf_hit_middle: key at the middle of the outer map.
- valueOf_hit_last: key at the last entry, full outer scan.
- valueOf_miss: absent key, full scan with no inner walk.

These tests catch regressions in `valueOf` compilation and cost that would
otherwise surface only through downstream callers (`currencySymbolValueOf`,
`assetClassValueOf`, `geq`, etc.).
@Unisay
Unisay force-pushed the yura/issue-2242-valueof-golden-gate branch from d97a546 to fd2ef05 Compare August 10, 2026 15:04
@Unisay
Unisay marked this pull request as ready for review August 10, 2026 15:04
@Unisay Unisay self-assigned this Aug 10, 2026
@Unisay
Unisay requested a review from a team August 10, 2026 16:00
@Unisay
Unisay enabled auto-merge (squash) August 10, 2026 16:01
@Unisay
Unisay merged commit 0e9b1f6 into master Aug 11, 2026
9 checks passed
@Unisay
Unisay deleted the yura/issue-2242-valueof-golden-gate branch August 11, 2026 21:11
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