FileKeyValueStore.test constructor
- @visibleForTesting
- String directory, {
- InstallationsLogger? logger,
- Future<
ProcessResult> runCommand()?, - 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);