materializeTransportedArtifactsForTest function
Test hook for the device-to-host artifact protocol.
Implementation
Future<void> materializeTransportedArtifactsForTest(
String appDir,
String output,
) async {
final result = await materializeTransportedArtifacts(
artifactRoot: _artifactRootPath(appDir),
output: output,
);
if (!result.complete) {
throw StateError(result.error ?? 'Incomplete artifact transport.');
}
}