Shervin
03/04/2024, 4:58 PMobject
are covered except the first line, the definition of the class:
so object MyObject : Person()
is not covered, while all the inner children are covered.
Any idea how I can resolve this?Klitos Kyriacou
03/04/2024, 5:27 PMShervin
03/04/2024, 5:27 PMShervin
03/04/2024, 5:28 PMObject Person {
Data class Me(…)
}
I hVe test for Me
But Person is not coveredKlitos Kyriacou
03/04/2024, 5:33 PMdata class Me
is just enclosed in object Person
but it's not actually part of the object. It's not an inner class, but just a nested class. Thus, when you test <http://Person.Me|Person.Me>
you're simply using Person
as a namespace. To actually test Person
, you need to check a property of the object.Shervin
03/04/2024, 5:35 PMKlitos Kyriacou
03/04/2024, 5:36 PMCLOVIS
03/04/2024, 8:22 PMShervin
03/04/2024, 8:25 PM