tearDown method

  1. @mustCallSuper
Future<void> tearDown()
inherited

Disposes of the test environment after each test.

Clears analysis engine caches and disposes of the analysis context collection.

Implementation

@mustCallSuper
Future<void> tearDown() async {
  AnalysisEngine.instance.clearCaches();
  await _analysisContextCollection?.dispose();
  _analysisContextCollection = null;
}