From 55f8fdf988a01b391c27f95e652bc2e3dfeb45ec Mon Sep 17 00:00:00 2001 From: Leo Dion Date: Sun, 12 May 2024 21:11:02 -0400 Subject: [PATCH] disabling more stuff --- Tests/FeatherQuillTests/AudienceType.swift | 46 +++++++++---------- Tests/FeatherQuillTests/FeatureTests.swift | 2 +- Tests/FeatherQuillTests/MockFeatureFlag.swift | 30 ++++++------ 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Tests/FeatherQuillTests/AudienceType.swift b/Tests/FeatherQuillTests/AudienceType.swift index 6cbef23..7a89b07 100644 --- a/Tests/FeatherQuillTests/AudienceType.swift +++ b/Tests/FeatherQuillTests/AudienceType.swift @@ -27,26 +27,26 @@ // OTHER DEALINGS IN THE SOFTWARE. // -import FeatherQuill - -public struct AudienceType: UserType { - public typealias RawValue = Int - public static let proSubscriber: AudienceType = .init(rawValue: 1) - public static let testFlightBeta: AudienceType = .init(rawValue: 2) - public static let any: AudienceType = .init(rawValue: .max) - public static let `default`: AudienceType = [.testFlightBeta, proSubscriber] - public static let none: AudienceType = [] - public var rawValue: Int - - public init(rawValue: Int) { - self.rawValue = rawValue - } - - public static func includes(_ value: AudienceType) -> Bool { - guard value.rawValue > 0 else { - return false - } - let value: Bool = .random() - return value - } -} +//import FeatherQuill +// +//public struct AudienceType: UserType { +// public typealias RawValue = Int +// public static let proSubscriber: AudienceType = .init(rawValue: 1) +// public static let testFlightBeta: AudienceType = .init(rawValue: 2) +// public static let any: AudienceType = .init(rawValue: .max) +// public static let `default`: AudienceType = [.testFlightBeta, proSubscriber] +// public static let none: AudienceType = [] +// public var rawValue: Int +// +// public init(rawValue: Int) { +// self.rawValue = rawValue +// } +// +// public static func includes(_ value: AudienceType) -> Bool { +// guard value.rawValue > 0 else { +// return false +// } +// let value: Bool = .random() +// return value +// } +//} diff --git a/Tests/FeatherQuillTests/FeatureTests.swift b/Tests/FeatherQuillTests/FeatureTests.swift index 2b7aee8..b39ac0a 100644 --- a/Tests/FeatherQuillTests/FeatureTests.swift +++ b/Tests/FeatherQuillTests/FeatureTests.swift @@ -27,7 +27,7 @@ // OTHER DEALINGS IN THE SOFTWARE. // -@testable import FeatherQuill +//@testable import FeatherQuill import XCTest //internal final class FeatureTests: XCTestCase { diff --git a/Tests/FeatherQuillTests/MockFeatureFlag.swift b/Tests/FeatherQuillTests/MockFeatureFlag.swift index 74aac17..e8103a8 100644 --- a/Tests/FeatherQuillTests/MockFeatureFlag.swift +++ b/Tests/FeatherQuillTests/MockFeatureFlag.swift @@ -27,18 +27,18 @@ // OTHER DEALINGS IN THE SOFTWARE. // -#if canImport(SwiftUI) - import FeatherQuill - - internal struct MockFeatureFlag: FeatureFlag { - internal typealias UserTypeValue = AudienceType - - internal static let initialValue: Int = .random(in: 1_000 ... 9_999) - - internal static let probability: Double = .random(in: 0 ..< 1) - - internal static func evaluateUser(_: AudienceType) async -> Bool { - true - } - } -#endif +//#if canImport(SwiftUI) +// import FeatherQuill +// +// internal struct MockFeatureFlag: FeatureFlag { +// internal typealias UserTypeValue = AudienceType +// +// internal static let initialValue: Int = .random(in: 1_000 ... 9_999) +// +// internal static let probability: Double = .random(in: 0 ..< 1) +// +// internal static func evaluateUser(_: AudienceType) async -> Bool { +// true +// } +// } +//#endif