2019-01-05 00:54:00 +00:00
|
|
|
//
|
2019-01-06 21:01:08 +00:00
|
|
|
// OpenSystemCommandMock.swift
|
2024-10-01 18:05:41 +00:00
|
|
|
// masTests
|
2019-01-05 00:54:00 +00:00
|
|
|
//
|
|
|
|
// Created by Ben Chatelain on 1/4/19.
|
|
|
|
// Copyright © 2019 mas-cli. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2021-04-14 19:08:55 +00:00
|
|
|
import Foundation
|
2021-05-08 20:26:25 +00:00
|
|
|
|
2024-10-01 18:05:41 +00:00
|
|
|
@testable import mas
|
2019-01-05 00:54:00 +00:00
|
|
|
|
2019-01-06 21:01:08 +00:00
|
|
|
class OpenSystemCommandMock: ExternalCommand {
|
2019-01-05 00:54:00 +00:00
|
|
|
// Stub out protocol logic
|
|
|
|
var succeeded = true
|
2024-10-02 02:16:06 +00:00
|
|
|
var arguments: [String] = []
|
2019-01-05 00:54:00 +00:00
|
|
|
|
|
|
|
// unused
|
|
|
|
var binaryPath = "/dev/null"
|
|
|
|
var process = Process()
|
|
|
|
var stdoutPipe = Pipe()
|
|
|
|
var stderrPipe = Pipe()
|
|
|
|
|
|
|
|
func run(arguments: String...) throws {
|
|
|
|
self.arguments = arguments
|
|
|
|
}
|
|
|
|
}
|