Automating Exhaustive Branch Coverage for Sealed Types in Kotlin — Engineering Blog (opens in new tab)
We take code correctness and code quality seriously at Wealthfront. One of the most effective ways we ensure that our code is correct is through rigorous unit testing and strong typing. In Kotlin, sealed classes and sealed interfaces offer a powerful tool to model restricted class hierarchies. They provide strong guarantees about the types in... Read more
Read the original article