Branch Coverage

lib/Text/ASCII/Convert.pm
Criterion Covered Total %
branch 7 8 87.5


line true false branch
104 1 5 is_valid_utf_8($_[0]) ? :
108 44 9 defined $char_map{$1} ? :
119 0 6 unless defined $_[0]
140 1 5 $_[0] =~ /^ (?: [\x00-\x7F] | [\xC2-\xDF] [\x80-\xBF] | \xE0 [\xA0-\xBF] [\x80-\xBF] | [\xE1-\xEC] [\x80-\xBF]{2} | \xED [\x80-\x9F] [\x80-\xBF] | [\xEE-\xEF] [\x80-\xBF]{2} | \xF0 [\x90-\xBF] [\x80-\xBF]{2} | [\xF1-\xF3] [\x80-\xBF]{3} | \xF4 [\x80-\x8F] [\x80-\xBF]{2} )* \z/sx ? :