summaryrefslogtreecommitdiffhomepage
path: root/android/test
diff options
context:
space:
mode:
authorKalle Lindström <karl.lindstrom@mullvad.net>2025-08-28 09:23:10 +0200
committerKalle Lindström <karl.lindstrom@mullvad.net>2025-08-28 09:23:10 +0200
commit21b3ede39501c037231e69c89c2d18cbde156f5f (patch)
tree171a2e121b60629c665ea2d350884c68f609a7ca /android/test
parentdb6766ebc0e76af2d93efa6b7295dfea88e23070 (diff)
parenta79fad13633dc4dec629758c0c35a53db349cbc2 (diff)
downloadmullvadvpn-21b3ede39501c037231e69c89c2d18cbde156f5f.tar.xz
mullvadvpn-21b3ede39501c037231e69c89c2d18cbde156f5f.zip
Merge branch 'rust-android-gradle-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 }
}