[#1097] Adopt Bip39 1.0.5
* [#1097] Adopt Bip39 1.0.5 * Fix Detekt warnings
This commit is contained in:
parent
e60af8e824
commit
dc330228ff
|
@ -124,7 +124,7 @@ ANDROIDX_TEST_CORE_VERSION=1.5.0
|
||||||
ANDROIDX_TEST_RUNNER_VERSION=1.5.2
|
ANDROIDX_TEST_RUNNER_VERSION=1.5.2
|
||||||
ANDROIDX_TRACING_VERSION=1.2.0-rc01
|
ANDROIDX_TRACING_VERSION=1.2.0-rc01
|
||||||
ANDROIDX_UI_AUTOMATOR_VERSION=2.3.0-alpha03
|
ANDROIDX_UI_AUTOMATOR_VERSION=2.3.0-alpha03
|
||||||
BIP39_VERSION=1.0.4
|
BIP39_VERSION=1.0.5
|
||||||
CORE_LIBRARY_DESUGARING_VERSION=2.0.3
|
CORE_LIBRARY_DESUGARING_VERSION=2.0.3
|
||||||
COROUTINES_OKHTTP=1.0
|
COROUTINES_OKHTTP=1.0
|
||||||
GOOGLE_MATERIAL_VERSION=1.9.0
|
GOOGLE_MATERIAL_VERSION=1.9.0
|
||||||
|
|
|
@ -8,7 +8,6 @@ import cash.z.ecc.android.sdk.test.getAppContext
|
||||||
import cash.z.ecc.fixture.DatabaseCacheFilesRootFixture
|
import cash.z.ecc.fixture.DatabaseCacheFilesRootFixture
|
||||||
import cash.z.ecc.fixture.DatabaseNameFixture
|
import cash.z.ecc.fixture.DatabaseNameFixture
|
||||||
import cash.z.ecc.fixture.DatabasePathFixture
|
import cash.z.ecc.fixture.DatabasePathFixture
|
||||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
|
||||||
import kotlinx.coroutines.test.runTest
|
import kotlinx.coroutines.test.runTest
|
||||||
import org.junit.Assert.assertEquals
|
import org.junit.Assert.assertEquals
|
||||||
import org.junit.Assert.assertFalse
|
import org.junit.Assert.assertFalse
|
||||||
|
@ -31,7 +30,6 @@ class DatabaseCoordinatorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun database_cache_root_directory_creation_test() = runTest {
|
fun database_cache_root_directory_creation_test() = runTest {
|
||||||
val parentDirectory = File(DatabasePathFixture.new())
|
val parentDirectory = File(DatabasePathFixture.new())
|
||||||
val destinationDirectory = DatabaseCacheFilesRootFixture.newCacheRoot()
|
val destinationDirectory = DatabaseCacheFilesRootFixture.newCacheRoot()
|
||||||
|
@ -47,7 +45,6 @@ class DatabaseCoordinatorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun database_data_file_creation_test() = runTest {
|
fun database_data_file_creation_test() = runTest {
|
||||||
val directory = File(DatabasePathFixture.new())
|
val directory = File(DatabasePathFixture.new())
|
||||||
val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_DATA_NAME)
|
val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_DATA_NAME)
|
||||||
|
@ -63,7 +60,6 @@ class DatabaseCoordinatorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun database_transactions_file_creation_test() = runTest {
|
fun database_transactions_file_creation_test() = runTest {
|
||||||
val directory = File(DatabasePathFixture.new())
|
val directory = File(DatabasePathFixture.new())
|
||||||
val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_PENDING_TRANSACTIONS_NAME)
|
val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_PENDING_TRANSACTIONS_NAME)
|
||||||
|
@ -77,9 +73,9 @@ class DatabaseCoordinatorTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("LongMethod")
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun data_database_files_move_test() = runTest {
|
fun data_database_files_move_test() = runTest {
|
||||||
val parentFile = File(
|
val parentFile = File(
|
||||||
DatabasePathFixture.new(
|
DatabasePathFixture.new(
|
||||||
|
@ -163,7 +159,6 @@ class DatabaseCoordinatorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun delete_data_database_files_test() = runTest {
|
fun delete_data_database_files_test() = runTest {
|
||||||
val parentFile = File(
|
val parentFile = File(
|
||||||
DatabasePathFixture.new(
|
DatabasePathFixture.new(
|
||||||
|
@ -202,9 +197,9 @@ class DatabaseCoordinatorTest {
|
||||||
* Note that this situation is just hypothetical, as the legacy database files should be placed only on one of
|
* Note that this situation is just hypothetical, as the legacy database files should be placed only on one of
|
||||||
* the legacy locations, not both, but it is alright to test it together.
|
* the legacy locations, not both, but it is alright to test it together.
|
||||||
*/
|
*/
|
||||||
|
@Suppress("LongMethod")
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
fun delete_all_legacy_database_files_test() = runTest {
|
fun delete_all_legacy_database_files_test() = runTest {
|
||||||
// create older location legacy files
|
// create older location legacy files
|
||||||
val olderLegacyParentFile = File(
|
val olderLegacyParentFile = File(
|
||||||
|
@ -301,7 +296,6 @@ class DatabaseCoordinatorTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
fun data_db_path() = runTest {
|
fun data_db_path() = runTest {
|
||||||
|
@ -315,7 +309,6 @@ class DatabaseCoordinatorTest {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
|
||||||
@Test
|
@Test
|
||||||
@SmallTest
|
@SmallTest
|
||||||
fun cache_path() = runTest {
|
fun cache_path() = runTest {
|
||||||
|
|
Loading…
Reference in New Issue