IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.07k stars 720 forks source link

Ensure query test completeness #5920

Closed palas closed 3 months ago

palas commented 4 months ago

Description

This PR uses TemplateHaskell to ensure that, if a new query is added to the cardano-cli, the tests in cardano-testnet won't compile until a section for a test for that query is added. As part of this, this PR also adds tests for all the queries that didn't have tests. These are basic tests in all cases, but should be good enough to ensure there are not serialization/deserialization issues.

Checklist

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons. You will need to get someone with write privileges. Please contact IOG node developers to do this for you.