FileKeyValueStore.test constructor

  1. @visibleForTesting
FileKeyValueStore.test(
  1. String directory, {
  2. InstallationsLogger? logger,
  3. Future<ProcessResult> runCommand(
    1. String executable,
    2. List<String> arguments
    )?,
  4. DateTime clock()?,
})

Like the main constructor, with runCommand (replaces Process.run, used for chmod and the permission check) and clock (the time the stale-file rule compares with) for tests.

Implementation

@visibleForTesting
FileKeyValueStore.test(
  String directory, {
  InstallationsLogger? logger,
  Future<ProcessResult> Function(String executable, List<String> arguments)?
  runCommand,
  DateTime Function()? clock,
}) : this._(directory, logger, runCommand, clock);