pitest-kotlin icon indicating copy to clipboard operation
pitest-kotlin copied to clipboard

Prevent mutating data class accessors

Open pkubowicz opened this issue 5 years ago • 0 comments

Pitest changes String property getter to return an empty string and then executes tests to see if something is broken.

This is a waste of time. Properties in data classes should not be tested, it should be assumed that they always work as it is a language feature.

pkubowicz avatar Jun 25 '20 15:06 pkubowicz