Added the Input and Output namespaces in the tests target.
This commit is contained in:
@@ -71,7 +71,7 @@ private extension AssetFileTests {
|
|||||||
|
|
||||||
// MARK: - Constants
|
// MARK: - Constants
|
||||||
|
|
||||||
extension Output {
|
private extension Output {
|
||||||
/// A list of expected outputs for the paths of the ``AssetFile`` enumeration cases.
|
/// A list of expected outputs for the paths of the ``AssetFile`` enumeration cases.
|
||||||
static let assetFilePaths: [String] = ["/data/documentation.json", "/favicon.ico", "/favicon.svg", "/theme-settings.json"]
|
static let assetFilePaths: [String] = ["/data/documentation.json", "/favicon.ico", "/favicon.svg", "/theme-settings.json"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ private extension AssetFolderTests {
|
|||||||
|
|
||||||
// MARK: - Constants
|
// MARK: - Constants
|
||||||
|
|
||||||
extension Output {
|
private extension Output {
|
||||||
/// A list of expected outputs for the paths of the ``AssetFolder`` enumeration cases.
|
/// A list of expected outputs for the paths of the ``AssetFolder`` enumeration cases.
|
||||||
static let assetFolderPaths: [String] = ["/css/", "/data/", "/downloads/", "/images/", "/img/", "/index/", "/js/", "/videos/"]
|
static let assetFolderPaths: [String] = ["/css/", "/data/", "/downloads/", "/images/", "/img/", "/index/", "/js/", "/videos/"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ private extension DocumentationTypeTests {
|
|||||||
|
|
||||||
// MARK: - Constants
|
// MARK: - Constants
|
||||||
|
|
||||||
extension Output {
|
private extension Output {
|
||||||
/// A list of expected outputs for the paths of the ``DocumentationFolder`` enumeration cases.
|
/// A list of expected outputs for the paths of the ``DocumentationFolder`` enumeration cases.
|
||||||
static let documentationFolderPaths: [String] = ["/documentation", "/tutorials"]
|
static let documentationFolderPaths: [String] = ["/documentation", "/tutorials"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ private extension CheckURIUseCaseTests {
|
|||||||
|
|
||||||
// MARK: Functions
|
// MARK: Functions
|
||||||
|
|
||||||
/// Asserts a URI type based on a given path and an expected result.
|
/// Asserts a URI path provided by the ``CheckURIPathUseCase`` use case based on a given path and an expected result.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - uriPath: A URI path to use with a URI type.
|
/// - uriPath: A URI path to use with a URI type.
|
||||||
/// - result: An expected result coming out of the use case.
|
/// - result: An expected result coming out of the use case.
|
||||||
@@ -101,14 +101,14 @@ private extension CheckURIUseCaseTests {
|
|||||||
|
|
||||||
// MARK: - Constants
|
// MARK: - Constants
|
||||||
|
|
||||||
enum Input {
|
private extension Input {
|
||||||
/// A list of non-encoded URI samples.
|
/// A list of non-encoded URI samples.
|
||||||
static let nonEncodedURIs: [String] = ["/", "/some/known/path", "", "/some/../path", "some/other/path"]
|
static let nonEncodedURIs: [String] = ["/", "/some/known/path", "", "/some/../path", "some/other/path"]
|
||||||
/// A list of percent-encoded URI samples.
|
/// A list of percent-encoded URI samples.
|
||||||
static let percentEncodedURIs: [String] = ["%2F", "/some%2Fknown%3Fpath", "%20", "/some/%2E%2E/path", "some%2Fother%3Fpath"]
|
static let percentEncodedURIs: [String] = ["%2F", "/some%2Fknown%3Fpath", "%20", "/some/%2E%2E/path", "some%2Fother%3Fpath"]
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Output {
|
private extension Output {
|
||||||
/// A list of expected outputs for the non-encoded URI samples.
|
/// A list of expected outputs for the non-encoded URI samples.
|
||||||
static let nonEncodedURIs: [String?] = ["/", "/some/known/path", "/", nil, nil]
|
static let nonEncodedURIs: [String?] = ["/", "/some/known/path", "/", nil, nil]
|
||||||
/// A list of expected outputs for the percent-encoded URI samples.
|
/// A list of expected outputs for the percent-encoded URI samples.
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// ===----------------------------------------------------------------------===
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird DocC Middleware open source project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2025 Röck+Cöde VoF. and the Hummingbird DocC Middleware project authors
|
||||||
|
// Licensed under the EUPL 1.2 or later.
|
||||||
|
//
|
||||||
|
// See LICENSE for license information
|
||||||
|
// See CONTRIBUTORS for the list of Hummingbird DocC Middleware project authors
|
||||||
|
//
|
||||||
|
// ===----------------------------------------------------------------------===
|
||||||
|
|
||||||
|
/// A namespace assigned for test arguments that would be input into test cases.
|
||||||
|
enum Input {}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// ===----------------------------------------------------------------------===
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird DocC Middleware open source project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2025 Röck+Cöde VoF. and the Hummingbird DocC Middleware project authors
|
||||||
|
// Licensed under the EUPL 1.2 or later.
|
||||||
|
//
|
||||||
|
// See LICENSE for license information
|
||||||
|
// See CONTRIBUTORS for the list of Hummingbird DocC Middleware project authors
|
||||||
|
//
|
||||||
|
// ===----------------------------------------------------------------------===
|
||||||
|
|
||||||
|
/// A namespace assigned for test arguments that would be expected outputs coming from results of test cases.
|
||||||
|
enum Output {}
|
||||||
Reference in New Issue
Block a user