-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create core test sublib #3184
Create core test sublib #3184
Conversation
2b6a275
to
99a5c4b
Compare
fbcdbc9
to
394a62d
Compare
394a62d
to
f5c93e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments, I think the Wdrl and renaming EraIndependentGenerators are worth doing
libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/FromCBOR.hs
Outdated
Show resolved
Hide resolved
eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Serialisation/EraIndepGenerators.hs
Show resolved
Hide resolved
eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Serialisation/EraIndepGenerators.hs
Show resolved
Hide resolved
eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Serialisation/EraIndepGenerators.hs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Serialisation/EraIndepGenerators.hs
Show resolved
Hide resolved
f5c93e9
to
a864e06
Compare
libs/cardano-ledger-binary/test/Test/Cardano/Ledger/Binary/Vintage/Serialization.hs
Show resolved
Hide resolved
a864e06
to
fbc11c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Remove redundant Hedgehog generators in favor of Arbitrary instances
fbc11c4
to
ab5026e
Compare
This PR cleans up, organizes Arbitrary instances for all of the
cardano-ledger-core
types in the newly createdcardano-ledger-core:testlib
. Also it removes some of the duplicate hedgehog generators, that are now fully replaced byQuickCheck
instances.It is important to note that this is just the beginning of the test suite cleanup, therefore more PRs like this one are expected to be coming in the future.