summaryrefslogtreecommitdiffhomepage
path: root/android/test
diff options
context:
space:
mode:
authorKalle Lindström <karl.lindstrom@mullvad.net>2025-08-28 08:15:18 +0200
committerKalle Lindström <karl.lindstrom@mullvad.net>2025-08-28 08:24:40 +0200
commit4c08174a9f1dca598292d074a048922e1dd41234 (patch)
tree752c56d32c83ff7b9e00fcdfad4876edeab2f0e8 /android/test
parentdb6766ebc0e76af2d93efa6b7295dfea88e23070 (diff)
downloadmullvadvpn-4c08174a9f1dca598292d074a048922e1dd41234.tar.xz
mullvadvpn-4c08174a9f1dca598292d074a048922e1dd41234.zip
Use rust-android-gradle plugin as submodule
Diffstat (limited to 'android/test')
-rw-r--r--android/test/arch/src/test/kotlin/net/mullvad/mullvadvpn/test/arch/classes/DataClassTest.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/android/test/arch/src/test/kotlin/net/mullvad/mullvadvpn/test/arch/classes/DataClassTest.kt b/android/test/arch/src/test/kotlin/net/mullvad/mullvadvpn/test/arch/classes/DataClassTest.kt
index c20277b1d9..eddcd4fe90 100644
--- a/android/test/arch/src/test/kotlin/net/mullvad/mullvadvpn/test/arch/classes/DataClassTest.kt
+++ b/android/test/arch/src/test/kotlin/net/mullvad/mullvadvpn/test/arch/classes/DataClassTest.kt
@@ -12,6 +12,15 @@ class DataClassTest {
Konsist.scopeFromProject()
.classes(includeNested = true)
.withDataModifier()
- .properties(includeNested = true)
+ // If includeNested is set to true the test would fail on properties of nested classes
+ // of data classes, even if those classes are not used as a property of the data class.
+ // For example:
+ // data class Immutable(val a: String) {
+ // class Mutable {
+ // var b: String = ""
+ // }
+ // }
+ // would fail because the nested class Mutable has a var property.
+ .properties(includeNested = false)
.assertFalse { it.isVar }
}