mirror of
https://github.com/mas-cli/mas
synced 2024-11-28 22:40:24 +00:00
27 lines
542 B
Swift
27 lines
542 B
Swift
//
|
|
// OpenSystemCommandMock.swift
|
|
// MasKitTests
|
|
//
|
|
// Created by Ben Chatelain on 1/4/19.
|
|
// Copyright © 2019 mas-cli. All rights reserved.
|
|
//
|
|
|
|
@testable import MasKit
|
|
|
|
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()
|
|
|
|
init() {}
|
|
|
|
func run(arguments: String...) throws {
|
|
self.arguments = arguments
|
|
}
|
|
}
|