Emcee

Форк
0
/
AppleTestContext.swift 
41 строка · 1.7 Кб
1
import AppleTestModels
2
import CommonTestModels
3
import DeveloperDirModels
4
import Foundation
5
import PathLib
6
import SimulatorPoolModels
7

8
public struct AppleTestContext: Codable, Hashable, CustomStringConvertible {
9
    public let contextId: String
10
    public let developerDir: DeveloperDir
11
    public let environment: [String: String]
12
    public let userInsertedLibraries: [String]
13
    public let simulator: Simulator
14
    public let testRunnerWorkingDirectory: AbsolutePath
15
    public let testsWorkingDirectory: AbsolutePath
16
    public let testAttachmentLifetime: TestAttachmentLifetime
17
    
18
    public init(
19
        contextId: String,
20
        developerDir: DeveloperDir,
21
        environment: [String: String],
22
        userInsertedLibraries: [String],
23
        simulator: Simulator,
24
        testRunnerWorkingDirectory: AbsolutePath,
25
        testsWorkingDirectory: AbsolutePath,
26
        testAttachmentLifetime: TestAttachmentLifetime
27
    ) {
28
        self.contextId = contextId
29
        self.developerDir = developerDir
30
        self.environment = environment
31
        self.userInsertedLibraries = userInsertedLibraries
32
        self.simulator = simulator
33
        self.testRunnerWorkingDirectory = testRunnerWorkingDirectory
34
        self.testsWorkingDirectory = testsWorkingDirectory
35
        self.testAttachmentLifetime = testAttachmentLifetime
36
    }
37
    
38
    public var description: String {
39
        return "<\(type(of: self)): contextId: \(contextId) simulator: \(simulator), developerDir: \(developerDir), testRunnerWorkingDirectory: \(testRunnerWorkingDirectory), testsWorkingDirectory: \(testsWorkingDirectory), env: \(environment), userInsertedLibraries: \(userInsertedLibraries), testAttachmentLifetime: \(testAttachmentLifetime)>"
40
    }
41
}
42

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.