configureForTest static method

void configureForTest({
  1. bool? enabled,
  2. bool captureFrames = false,
  3. String? path,
  4. String? runId,
  5. String? baseDirectory,
  6. DateTime nowProvider()?,
  7. bool clear = false,
})

Implementation

static void configureForTest({
  bool? enabled,
  bool captureFrames = false,
  String? path,
  String? runId,
  String? baseDirectory,
  DateTime Function()? nowProvider,
  bool clear = false,
}) {
  _testOverride = true;
  _testEnabled = clear ? false : enabled;
  _testCaptureFrames = clear ? false : captureFrames;
  _testPath = clear ? null : path;
  _testRunId = clear ? null : runId;
  _testBaseDirectory = clear ? null : baseDirectory;
  _testNowProvider = clear ? null : nowProvider;
  _resolved = false;
  close();
}