News for hackers. Stuff that matters.
Re:The Myth of Code Coverage by tcbasche on Saturday December 05, 2020 @04:10AM (#25312996)
Arguably you should be testing behaviour rather than getters and setters. If a codepath requires a name formatted correctly, then that forms the basis of a test and an assertion. Otherwise you're introducing fragility by coupling your 'under the hood' stuff with your 'API' (so to speak).

There are no comments on this comment yet.