IntersectMBO / IntersectMBO/cardano-ledger
Increase test-coverage for queries
- Dominant language
- Haskell
- Stars
- 295
- Forks
- 179
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 29
Description
- [ ] `cuddle` tests with `antigen`.
- [ ] `ImpTests` for all query functions, especially those requiring accumulated state: `queryCurrentPParams`, `queryFuturePParams`, `queryRatifyState`, `queryProposals`, `queryStakePoolDefaultVote`, `queryGovState`, `queryConstitution`, `queryConstitutionHash`, `queryChainAccountState`, `queryDRepStakeDistr`, `queryRegisteredDRepStakeDistr`, `querySPOStakeDistr`, `queryStakePoolDelegsAndRewards`, `queryPoolState`, `queryPoolParameters`.
- [ ] Test queries before and after epoch transitions, especially `queryFuturePParams`, `queryStakeSnapshots` (`mark`, `set`, `go` rotation), and `queryCommitteeMembersState` (`NextEpochChange` predictions).
- [ ] Property tests (extraction + consistency): Add `QuickCheck` properties verifying each query extracts the correct subset of `NewEpochState`, following the patterns in `queryStakeSnapshotsSpec` and `committeeMembersStateSpec` in `Test.Cardano.Ledger.Api.State.QuerySpec`. Include cross-query consistency checks (e.g. `queryPoolState` restricted to current params should agree with `queryPoolParameters`).
- [ ] ~~Verify era-polymorphic queries produce correct results across Shelley through Dijkstra, not just Conway+Dijkstra.~~
Contributor guide
Assessment
This issue has not been assessed yet.