materializeTransportedArtifactsForTest function

Future<void> materializeTransportedArtifactsForTest(
  1. String appDir,
  2. String output
)

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.');
  }
}