Hey, is there any sort of obvious pattern that I’m...
# kotlintest
w
Hey, is there any sort of obvious pattern that I’m missing here? I verify lists of data classes, but I don’t care about some of the fields. For example I’d like to do something like
Copy code
data class Type(val name: String, irrelevant: () -> Unit)

// in tests
val result: List<Type> = mapper.map(items)
it("should have proper result") {
  result shouldBe listOf(Type("firstName", any()), Type("secondResult", any()))
}