2 ms·
I've found the same. Unit tests easily have 3-5x the code that is being tested. But most of the code is very very straightforward with little complexity. I.e ca
by ensiferum 6y ago
I've found the same. Unit tests easily have 3-5x the code that is being tested. But most of the code is very very straightforward with little complexity. I.e call this method with N different arguments covering edge cases border values illegal values and legal values.
Example
https://github.com/ensisoft/newsflash-plus/blob/master/engine/unit_test/unit_test_session.cpp https://github.com/ensisoft/newsflash-plus/blob/master/engin...