assertNoDiagnosticsInFile method

Future<void> assertNoDiagnosticsInFile(
  1. String path
)
inherited

Asserts that there are no diagnostics in the file at the given path.

Note: Be sure to await any use of this API, to avoid stale analysis results (See DisposedAnalysisContextResult).

Implementation

Future<void> assertNoDiagnosticsInFile(String path) async =>
    assertDiagnosticsInFile(path, const []);