Coverage Summary for Class: GoalContributionMode (com.georgeci.moneysurfer.navigation)

Class Method, % Branch, % Line, % Instruction, %
GoalContributionMode 100% (1/1) 100% (2/2) 100% (23/23)
GoalContributionMode$Companion 0% (0/1) 0% (0/2) 0% (0/1) 0% (0/14)
Total 50% (1/2) 0% (0/2) 66.7% (2/3) 62.2% (23/37)


 package com.georgeci.moneysurfer.navigation
 
 /**
  * Which direction the contribution screen moves money. Carried through [Route.GoalContribution]
  * as a name so the route stays a plain serializable data class.
  */
 enum class GoalContributionMode {
     ADD,
     WITHDRAW,
     ;
 
     companion object {
         fun fromName(name: String?): GoalContributionMode =
             entries.firstOrNull { it.name == name } ?: ADD
     }
 }