logInvocations function
Print all collected invocations of any mock methods of mocks
.
Implementation
void logInvocations(List<Mock> mocks) {
final allInvocations =
mocks.expand((m) => m._realCalls).toList(growable: false);
allInvocations.sort((inv1, inv2) => inv1.timeStamp.compareTo(inv2.timeStamp));
for (final inv in allInvocations) {
print(inv.toString());
}
}