We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a532b commit f9dc90eCopy full SHA for f9dc90e
sqliter-driver/src/nativeCommonTest/kotlin/co/touchlab/sqliter/DatabaseConfigurationTest.kt
@@ -58,6 +58,19 @@ class DatabaseConfigurationTest : BaseDatabaseTest(){
58
assertEquals(":memory:", dbPathString)
59
}
60
61
+ @Test
62
+ fun temporaryOnlyTest(){
63
+ val conf = DatabaseConfiguration(
64
+ name = "",
65
+ inMemory = false,
66
+ version = 1,
67
+ create = {},
68
+ extendedConfig = DatabaseConfiguration.Extended(basePath = ""),
69
+ )
70
+ val dbPathString = diskOrMemoryPath(conf)
71
+ assertEquals("", dbPathString)
72
+ }
73
+
74
@Test
75
fun memoryPathTest(){
76
val conf = DatabaseConfiguration(
0 commit comments