Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ data class AgeGroup(
val endExclusive: Int?,
) {
fun isEmpty(): Boolean =
startInclusive == 0 && endExclusive == null
startInclusive == 0 && (endExclusive == null || endExclusive == 0)
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ class FingerprintConfigurationTest {
assertThat(it.value.toProto()).isEqualTo(it.key)
}
}
@Test
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how about the coverage :D

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The allowed age groups was already covered in other tests

fun `should map correctly the allowedAgeRange`() {
val mapping = mapOf(
ProtoFingerprintConfiguration.VeroGeneration.VERO_1 to FingerprintConfiguration.VeroGeneration.VERO_1,
ProtoFingerprintConfiguration.VeroGeneration.VERO_2 to FingerprintConfiguration.VeroGeneration.VERO_2,
)

mapping.forEach {
assertThat(it.key.toDomain()).isEqualTo(it.value)
assertThat(it.value.toProto()).isEqualTo(it.key)
}
}

@Test
fun `should map correctly the FingerComparisonStrategy enums`() {
Expand Down