fakeFromImport<T> function

  1. @visibleForTesting
T fakeFromImport<T>(
  1. T callback()
)

Runs callback in a context where AsyncImporter.fromImport returns true.

This is only intended for use when testing custom importers.

Implementation

@visibleForTesting
T fakeFromImport<T>(T callback()) => inImportRule(callback);