diff options
| author | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-10-27 11:09:30 +0100 |
|---|---|---|
| committer | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-10-27 11:09:30 +0100 |
| commit | a661d97f8f516476e71c4bc1ed293f33d9cd1c67 (patch) | |
| tree | 11dcecd485956d3ec2d2dbb2ebb7840a88d427e8 /android/test | |
| parent | 17cfab7afdd61bcf79fc1b411d63ff52a9a3ec4f (diff) | |
| parent | 152f021e782d047ed5eaecefbc859121e805e127 (diff) | |
| download | mullvadvpn-a661d97f8f516476e71c4bc1ed293f33d9cd1c67.tar.xz mullvadvpn-a661d97f8f516476e71c4bc1ed293f33d9cd1c67.zip | |
Merge branch 'update-dependencies-droid-2259'
Diffstat (limited to 'android/test')
| -rw-r--r-- | android/test/detekt/src/test/kotlin/net/mullvad/mullvadvpn/detekt/extensions/ScreenAndDialogNamedArgumentsTest.kt | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/android/test/detekt/src/test/kotlin/net/mullvad/mullvadvpn/detekt/extensions/ScreenAndDialogNamedArgumentsTest.kt b/android/test/detekt/src/test/kotlin/net/mullvad/mullvadvpn/detekt/extensions/ScreenAndDialogNamedArgumentsTest.kt index f060febec4..86cdd93e31 100644 --- a/android/test/detekt/src/test/kotlin/net/mullvad/mullvadvpn/detekt/extensions/ScreenAndDialogNamedArgumentsTest.kt +++ b/android/test/detekt/src/test/kotlin/net/mullvad/mullvadvpn/detekt/extensions/ScreenAndDialogNamedArgumentsTest.kt @@ -36,63 +36,63 @@ class ScreenAndDialogNamedArgumentsTest { private val incorrectCall: String = """ - @Composable - fun ExampleComposeScreen( - arg1: Int, - arg2: String = "", - ) {} + @Composable + fun ExampleComposeScreen( + arg1: Int, + arg2: String = "", + ) {} - @Composable - fun Caller() { - ExampleComposeScreen(2, args2 = "named") - } + @Composable + fun Caller() { + ExampleComposeScreen(2, args2 = "named") + } """ .trimIndent() private val correctCall: String = """ - @Composable - fun ExampleComposeScreen( - arg1: Int, - arg2: String = "", - ) {} + @Composable + fun ExampleComposeScreen( + arg1: Int, + arg2: String = "", + ) {} - @Composable - fun Caller() { - ExampleComposeScreen(arg1 = 2, args2 = "named") - } + @Composable + fun Caller() { + ExampleComposeScreen(arg1 = 2, args2 = "named") + } """ .trimIndent() private val ignoredCall: String = """ - @Composable - fun ExampleComposable( - arg1: Int, - arg2: String = "", - ) {} + @Composable + fun ExampleComposable( + arg1: Int, + arg2: String = "", + ) {} - fun initScreen(arg: Int) {} + fun initScreen(arg: Int) {} - @Composable - fun Caller() { - ExampleComposable(2, args2 = "named") - initScreen(2) - } + @Composable + fun Caller() { + ExampleComposable(2, args2 = "named") + initScreen(2) + } """ .trimIndent() private val trailingLambda: String = """ - @Composable - fun TrailingLambdaDialog(arg: Int, callback: (Int) -> Unit) { - callback(arg) - } - @Composable - fun Caller() { - TrailingLambdaDialog(arg = 2) { - println(it) - } + @Composable + fun TrailingLambdaDialog(arg: Int, callback: (Int) -> Unit) { + callback(arg) + } + @Composable + fun Caller() { + TrailingLambdaDialog(arg = 2) { + println(it) } + } """ .trimIndent() |
