leanovate / gopter

GOlang Property TestER
MIT License
599 stars 40 forks source link

Ignore unassignable fields in structs. #70

Closed mxr closed 4 years ago

mxr commented 4 years ago

We have some structs which have unassignable fields. Without this change, using gopter fails with

panic: reflect: reflect.flag.mustBeAssignable using value obtained using unexported field [recovered]
        panic: reflect: reflect.flag.mustBeAssignable using value obtained using unexported field
mxr commented 4 years ago

cc @untoldwind @exarkun @philandstuff (pulled from the contributor graph) would you be able to review this please?