Summary: - Tests: AnyStorageKeyTests.swift, AuditTests.swift, LocalDataTests.swift, MigrationAdditionalTests.swift, MigrationIntegrationTests.swift (+11 more) - Added symbols: func makeStringKey, func makeUserDefaultsKey, func makeFileKey, func makeLegacyStringKey, func makeModernStringKey, func makePhoneOnlyKey (+14 more) - Removed symbols: struct StringKey, typealias Value, struct TestKey, struct TestUserDefaultsKey, struct TestFileKey, struct LegacyStringKey (+19 more) Stats: - 16 files changed, 329 insertions(+), 386 deletions(-)
18 lines
480 B
Swift
18 lines
480 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import LocalData
|
|
|
|
@Suite struct StorageKeyDefaultsTests {
|
|
|
|
@Test func defaultSecurityPolicyIsRecommended() {
|
|
let key = StorageKey<Int>(
|
|
name: "minimal.key",
|
|
domain: .userDefaults(suite: nil),
|
|
owner: "Test",
|
|
description: "Test"
|
|
)
|
|
// This exercises the default implementation in StorageKey+Defaults.swift
|
|
#expect(key.security == .recommended)
|
|
}
|
|
}
|