class Crystal::ExhaustivenessChecker::TypeTarget
inherits Crystal::ExhaustivenessChecker::Target
¶
Any other target is a type target. The target to cover is the type itself.
Methods¶
#add_subtargets(type_groups : Array(Array(Type)), index : Int32) : Nil
¶
(type_groups : Array(Array(Type)), index : Int32) : Nil
Add subtargets for the given type groups, starting at index.
#cover(patterns : Array(Pattern), index : Int32) : Nil
¶
(patterns : Array(Pattern), index : Int32) : Nil
Covers this target and subsequent subtargets with the patterns starting at index.
#reject_covered! : Bool
¶
: Bool
Removes covered subtargets from this target, and returns whether this target ended up being entirely covered.