LocalData/Tests/LocalDataTests/RouterConfigurationTests.swift
Matt Bruce f5be4b8140 Update Configuration, Helpers, Models (+1 more) and tests
Summary:
- Sources: update Configuration, Helpers, Models (+1 more)
- Tests: update tests for AppGroupTests.swift, FileStorageHelperExpansionTests.swift, FileStorageHelperTests.swift (+7 more)

Stats:
- 18 files changed, 306 insertions(+), 58 deletions(-)
2026-01-18 13:43:10 -06:00

24 lines
836 B
Swift

import Foundation
import Testing
@testable import LocalData
@Suite struct RouterConfigurationTests {
private let router = StorageRouter(keychain: MockKeychainHelper())
@Test func updateConfigurations() async {
// Exercise the configuration update paths in StorageRouter
await router.updateStorageConfiguration(.default)
await router.updateEncryptionConfiguration(.default)
await router.updateSyncConfiguration(.default)
}
@Test func registerKeyMaterialProvider() async throws {
struct Provider: KeyMaterialProviding {
func keyMaterial(for keyName: String) async throws -> Data { Data() }
}
// Exercise registration path
await router.registerKeyMaterialProvider(Provider(), for: KeyMaterialSource(id: "test.source"))
}
}