simulateInvocationCounts method

void simulateInvocationCounts({
  1. int pending = 0,
  2. int abandoned = 0,
})

Sets the counts reported by pendingInvocationCount and abandonedInvocationCount, for asserting on leak-detection code paths.

Implementation

void simulateInvocationCounts({int pending = 0, int abandoned = 0}) {
  _pendingInvocations = pending;
  _abandonedInvocations = abandoned;
}