Files
data-lite-core/Tests/DataLiteCoreTests/Classes/Connection+LocationTests.swift
2025-10-26 18:21:59 +02:00

21 lines
600 B
Swift

import Testing
@testable import DataLiteCore
struct ConnectionLocationTests {
@Test func fileLocationPath() {
let filePath = "/path/to/database.db"
let location = Connection.Location.file(path: filePath)
#expect(location.path == filePath)
}
@Test func inMemoryLocationPath() {
let inMemoryLocation = Connection.Location.inMemory
#expect(inMemoryLocation.path == ":memory:")
}
@Test func temporaryLocationPath() {
let temporaryLocation = Connection.Location.temporary
#expect(temporaryLocation.path == "")
}
}