Skip to content

Commit 56fbe13

Browse files
committed
Ignore function naming check when annotated with @test
1 parent 485440b commit 56fbe13

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
[*.{kt,kts}]
55
ij_kotlin_allow_trailing_comma=true
66
ij_kotlin_allow_trailing_comma_on_call_site=true
7-
ktlint_function_naming_ignore_when_annotated_with=Composable
7+
ktlint_function_naming_ignore_when_annotated_with=Composable, Test

core/common/src/test/kotlin/com/google/samples/apps/nowinandroid/core/result/ResultKtTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import kotlin.test.assertEquals
2424

2525
class ResultKtTest {
2626

27-
@Suppress("ktlint:standard:function-naming")
2827
@Test
2928
fun Result_catches_errors() = runTest {
3029
flow {

core/datastore/src/test/kotlin/com/google/samples/apps/nowinandroid/core/datastore/IntToStringIdsMigrationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import kotlin.test.assertTrue
2727
class IntToStringIdsMigrationTest {
2828

2929
@Test
30-
fun intToStringIdsMigration_should_migrate_topic_ids() = runTest {
30+
fun IntToStringIdsMigration_should_migrate_topic_ids() = runTest {
3131
// Set up existing preferences with topic int ids
3232
val preMigrationUserPreferences = userPreferences {
3333
deprecatedIntFollowedTopicIds.addAll(listOf(1, 2, 3))
@@ -56,7 +56,7 @@ class IntToStringIdsMigrationTest {
5656
}
5757

5858
@Test
59-
fun intToStringIdsMigration_should_migrate_author_ids() = runTest {
59+
fun IntToStringIdsMigration_should_migrate_author_ids() = runTest {
6060
// Set up existing preferences with author int ids
6161
val preMigrationUserPreferences = userPreferences {
6262
deprecatedIntFollowedAuthorIds.addAll(listOf(4, 5, 6))

core/datastore/src/test/kotlin/com/google/samples/apps/nowinandroid/core/datastore/ListToMapMigrationTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import kotlin.test.assertTrue
2424
class ListToMapMigrationTest {
2525

2626
@Test
27-
fun listToMapMigration_should_migrate_topic_ids() = runTest {
27+
fun ListToMapMigration_should_migrate_topic_ids() = runTest {
2828
// Set up existing preferences with topic ids
2929
val preMigrationUserPreferences = userPreferences {
3030
deprecatedFollowedTopicIds.addAll(listOf("1", "2", "3"))
@@ -50,7 +50,7 @@ class ListToMapMigrationTest {
5050
}
5151

5252
@Test
53-
fun listToMapMigration_should_migrate_author_ids() = runTest {
53+
fun ListToMapMigration_should_migrate_author_ids() = runTest {
5454
// Set up existing preferences with author ids
5555
val preMigrationUserPreferences = userPreferences {
5656
deprecatedFollowedAuthorIds.addAll(listOf("4", "5", "6"))
@@ -76,7 +76,7 @@ class ListToMapMigrationTest {
7676
}
7777

7878
@Test
79-
fun listToMapMigration_should_migrate_bookmarks() = runTest {
79+
fun ListToMapMigration_should_migrate_bookmarks() = runTest {
8080
// Set up existing preferences with bookmarks
8181
val preMigrationUserPreferences = userPreferences {
8282
deprecatedBookmarkedNewsResourceIds.addAll(listOf("7", "8", "9"))

core/designsystem/src/test/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/TagScreenshotTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TagScreenshotTests() {
4747
val composeTestRule = createAndroidComposeRule<ComponentActivity>()
4848

4949
@Test
50-
fun tag_multipleThemes() {
50+
fun Tag_multipleThemes() {
5151
composeTestRule.captureMultiTheme("Tag") {
5252
NiaTopicTag(followed = true, onClick = {}) {
5353
Text("TOPIC")

0 commit comments

Comments
 (0)