Implemented some tests for the RunProcessTaskTests case tests in the tests target.

This commit is contained in:
2025-01-18 23:12:55 +01:00
parent c7a1258273
commit 36f1b8fe5c
2 changed files with 71 additions and 3 deletions
@@ -60,7 +60,7 @@ struct RunProcessTask {
} catch let error as RunProcessError {
throw error
} catch {
throw RunProcessError.captured(error)
throw RunProcessError.captured(error.localizedDescription)
}
}
@@ -68,8 +68,8 @@ struct RunProcessTask {
// MARK: - Errors
public enum RunProcessError: Error {
case captured(_ error: Error)
public enum RunProcessError: Error, Equatable {
case captured(_ output: String)
case output(_ output: String)
case unexpected
}