|
|
|
|
|
by ratww
2009 days ago
|
|
You still have to test all the 80 lines if they're broken down into multiple functions, so it's something that you have to evaluate on a case-by-case basis. It might even make it harder to test: if you break a function wrong, then you might end up with a group of functions that only work together anyway. For example: when you break a big function into 3 smaller ones. If the first acquires a resource (transaction, file) and the third releases it, then it might be simpler to test the whole group rather than each one separately. |
|