Skip to content

Commit

Permalink
Optimize the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaoyuang committed Dec 5, 2024
1 parent 36fb8b0 commit 4523e53
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ import platform.Foundation.NSUserDomainMask
internal actual fun getPlatformStringPath(): String =
(NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true).firstOrNull() as? String ?: "")

// actual val pathSeparator: Char = '/'
internal actual val pathSeparator: Char = '/'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import platform.posix.getcwd
internal actual fun getPlatformStringPath(): String =
getcwd(null, 0u)?.toKString() ?: throw IllegalStateException("The temp path created error")

// actual val pathSeparator: Char = '/'
internal actual val pathSeparator: Char = '/'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import platform.posix._wgetcwd
internal actual fun getPlatformStringPath(): String =
_wgetcwd(null, 0)?.toKString() ?: throw IllegalStateException("Get database path wrong")

// actual val pathSeparator: Char = '\\'
internal actual val pathSeparator: Char = '\\'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ internal expect fun getPlatformStringPath(): String
/**
* Get the file path separator, '\' in Windows, '/' in others
*/
// expect val pathSeparator: Char
internal expect val pathSeparator: Char
4 changes: 2 additions & 2 deletions test_android.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Run Android instrumented tests
./gradlew :sqllin-driver:connectedDebugAndroidTest --stacktrace
./gradlew :sqllin-dsl:connectedDebugAndroidTest --stacktrace
adb uninstall com.ctrip.sqllin.driver.test
adb uninstall com.ctrip.sqllin.dsl.test
#adb uninstall com.ctrip.sqllin.driver.test
#adb uninstall com.ctrip.sqllin.dsl.test

0 comments on commit 4523e53

Please sign in to comment.