leanovate / gopter

GOlang Property TestER
MIT License
598 stars 40 forks source link

gen.StructStrict, which errors if gens contains keys the target struct does not contain? #76

Open coventry opened 3 years ago

coventry commented 3 years ago

I'm thinking of writing a gen.StructStrict, which panics if gens contains keys which are not fields on rt, so for instance the "NotThere" key in struct_test.go::TestStruct would cause a failure. Would you be likely to accept this as a PR?

untoldwind commented 3 years ago

Sure, any PR is welcomed ;)

jonaslagoni commented 3 years ago

Was just about to request this :+1: :smile:

coventry commented 3 years ago

@jonaslagoni, please try #77.