Skip to content

Commit

Permalink
Codacity spread operator
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Dec 18, 2023
1 parent 2fe8f88 commit cb1839e
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,19 @@ class MigrationsTest {
InstrumentationRegistry.getInstrumentation().targetContext,
TalkDatabase::class.java,
TEST_DB
).addMigrations(*migrations).build().apply {
).addMigrations(
*arrayOf(
Migrations.MIGRATION_6_8,
Migrations.MIGRATION_7_8,
Migrations.MIGRATION_8_9,
Migrations.MIGRATION_9_10
)
).build().apply {
openHelper.writableDatabase.close()
}
}

companion object {
private const val TEST_DB = "migration-test"
private val migrations = arrayOf(
Migrations.MIGRATION_6_8,
Migrations.MIGRATION_7_8,
Migrations.MIGRATION_8_9,
Migrations.MIGRATION_9_10
)
}
}

0 comments on commit cb1839e

Please sign in to comment.