mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 12:33:08 +00:00
6793a91e03
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
27 lines
540 B
Swift
27 lines
540 B
Swift
//
|
|
// OpenSystemCommandMock.swift
|
|
// masTests
|
|
//
|
|
// Created by Ben Chatelain on 1/4/19.
|
|
// Copyright © 2019 mas-cli. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
@testable import mas
|
|
|
|
class OpenSystemCommandMock: ExternalCommand {
|
|
// Stub out protocol logic
|
|
var succeeded = true
|
|
var arguments: [String]?
|
|
|
|
// unused
|
|
var binaryPath = "/dev/null"
|
|
var process = Process()
|
|
var stdoutPipe = Pipe()
|
|
var stderrPipe = Pipe()
|
|
|
|
func run(arguments: String...) throws {
|
|
self.arguments = arguments
|
|
}
|
|
}
|