2 ms·
The real benefits will appear at testing, where you can replace the actual addition with a mock object that expects parameters 1 and 1 and returns a fixed value
by Viliam1234 7y ago
The real benefits will appear at testing, where you can replace the actual addition with a mock object that expects parameters 1 and 1 and returns a fixed value 2, without having to do the calculation.