writeEnsembleTestArtifactBytes function
Writes an artifact locally in widget mode or transports it to the host in bounded stdout records when the suite runs on a mobile target.
Implementation
Future<void> writeEnsembleTestArtifactBytes(
String directoryName,
String fileName,
List<int> bytes, {
String mimeType = 'application/octet-stream',
}) async {
return await RunnerBenchmark.async(
'artifact', 'writeEnsembleTestArtifactBytes', () async {
await ensembleTestArtifactSink.write(
p.posix.join(directoryName.replaceAll('\\', '/'), fileName),
bytes,
mimeType: mimeType,
);
});
}