configureForTest static method

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

Implementation

static void configureForTest({
  bool? enabled,
  String? path,
  String? baseDirectory,
  bool captureEnabled = false,
  String? tagsRaw,
  DateTime Function()? nowProvider,
  bool clear = false,
}) {
  _testOverride = true;
  _testEnabled = enabled;
  _testPath = path;
  _testBaseDirectory = baseDirectory;
  _testCaptureEnabled = captureEnabled ? true : null;
  _testTagsRaw = tagsRaw;
  _testNowProvider = nowProvider;
  _resolved = false;
}