Closed rexmas closed 6 months ago
fixes #152 (sort of. not as described in that issue)
i wouldn't mark this on as fixing #249 as I see that one being more about the internals of ValueTree itself. unless i'm misunderstanding something
It fixes 249 as I intended to write it! With this, my openapi struct would be generated to heap, rather than stack, which would permit running the tests without --release.
For enums with a lot of variants the
Strategy
synthesized by the#[derive(Arbitrary)]
macro is a right-deepTupleUnion
.This commit adds a
boxed_union
feature, which when enabled will change theenum
expansion to useUnion<BoxedStrategy<Self>>
.see github issues: https://github.com/proptest-rs/proptest/issues/249 https://github.com/proptest-rs/proptest/issues/152
code included from https://github.com/proptest-rs/proptest/issues/249#issuecomment-1367820389