FakePluginRunner class

PluginRunner that never spawns processes.

Reports available for every probe and returns result from run, recording each launched command in ran.

Implemented types

Constructors

FakePluginRunner({bool available = true, PluginRunResult result = const PluginRunResult(success: true, message: 'started')})
Creates a fake runner; defaults to available and successful.

Properties

available ↔ bool
Returned by isAvailable.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
ran → List<({PluginCommandConfig command, Device? device})>
Commands passed to run, with their target device.
final
result ↔ PluginRunResult
Returned by run.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isAvailable(PluginConfig plugin, PluginCommandConfig command) → Future<bool>
Whether the underlying executable for plugin/command is installed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(PluginCommandConfig command, Device? device) → Future<PluginRunResult>
Launches command for device, resolving argument templates.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited