discontinuedPackage fluttersdk_telescope has been discontinued and replaced by crumbs.

resetForTesting static method

  1. @visibleForTesting
void resetForTesting()

Test-only reset.

Implementation

@visibleForTesting
static void resetForTesting() {
  clear();
  _paused = false;
  _cap = 500;
  _kindCaps.clear();
  TelescopeRedaction.redactor = null;
  _framePerfCap = 3600;
  // The HTTP-adapter registry is a singleton list owned by
  // `internal/http_adapter_registry.dart`; clearing it here keeps test
  // isolation aligned with the existing buffer reset.
  httpAdapterRegistry.clear();
  // The hidden-name lists are process-wide too; a test that extends them
  // must not leak its additions into the next.
  resetRedactionLists();
}