cleiter
fun whenShouldCoverAllBranches(result: Result) = when (result) { Result.Ok -> Unit // succeeded Result.Fail -> throw Exception() }