|
|
|
|
|
by onli
1537 days ago
|
|
That your public function calls private functions is an implementation detail. It does not matter, test the public function. Subsequently that tests the private functions for all relevant input. There was recently a submission here on HN that talked about this and different perspectives on that topic. It's not a universally shared opinion, surprisingly. |
|
Then there's the world of behavior / property / invariant -based testing which slims down your tests to essentially data generation and testing observable behavior which seems like magic to people still.