startWorkerForTest static method
(FOR TESTING ONLY) Runs entryPoint as the worker instead of the
ONNX worker, without an init command. It receives the same messages
(embed, dispose) and must answer them the same way.
Implementation
@visibleForTesting
static Future<void> startWorkerForTest(
void Function(SendPort mainSendPort) entryPoint,
) => _startWorker(entryPoint);