Closed mxinden closed 1 year ago
One option would be to use variant_count
to make sure the above 26
doesn't become outdated. @jxs any other ideas?
One option would be to use
variant_count
to make sure the above26
doesn't become outdated. @jxs any other ideas?
That is nightly-only though, right?
We could add a test that only runs on nightly which asserts a constant that we use in the stable tests and run tests on nightly in CI.
Arbitrary
implementation seems to be missing some enum variants.Protocol
has30
variants.Arbitrary
implementation generates25
.Ideally this would be fixed by removing the need to list every
Protocol
variant. Though I can not think of a clean way of doing that. Simply updating theArbitrary
implementation seems fine for now.https://github.com/multiformats/rust-multiaddr/blob/1cfb9239d7447285bfb0f329320945a5e8afabe8/tests/lib.rs#L88-L139