Commit cebf6e3
committed
Optimized MockExpectedCallsList::isEmpty().
This simple modification changes the order of this function to O(1)
instead of O(n).
Taking in account that this function is called at least once each time
that an actual call is created, or withParameter()/onObject() is called
on it, the overall actual calls processing can be reduced from O(n!) to
O(n)!1 parent f6d698e commit cebf6e3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments