underTestRunner static method

bool underTestRunner()

True inside dart test: unit tests build real sessions, and their synthetic calls must never land in the user's usage store.

Implementation

static bool underTestRunner() => io.Platform.script.path.contains('dart_test');