dagolden / Data-Fake

Declaratively generate fake structured data for testing
https://metacpan.org/author/DAGOLDEN
5 stars 4 forks source link

Wishlist: dynamic hash generation #1

Open dagolden opened 9 years ago

dagolden commented 9 years ago

I'd like to add a factory for generating a hash from either a key and value generator or from a generator that returns a pair. Something like:

$gen = fake_var_hash( $key_gen, $value_gen );
$gen = fake_var_hash( $pair_gen );