From c9a5cd3a9f329ccfdcd3fbc9c74a1f3d9418a324 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Mon, 3 Oct 2022 19:27:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Next/TestableShell.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpmon/Next/TestableShell.swift b/phpmon/Next/TestableShell.swift index cb3f962..ece3f3e 100644 --- a/phpmon/Next/TestableShell.swift +++ b/phpmon/Next/TestableShell.swift @@ -43,6 +43,12 @@ public class TestableShell: Shellable { } } +// TODO: Test env shell output should be modeled differently +// So the possible outcome is either: +// 1. Immediate with almost zero delay `.instant("string")` +// 2. Delayed but then all at once: `.delay(300, "string")` +// 3. A stream of data spread over multiple seconds: `.multiple([.delay(300, "hello"), .delay(300, "bye")])` + protocol OutputsToShell { func getOutputAsString() -> String func getDuration() -> Int