Branch Coverage

blib/lib/Lang/Go/Mod.pm
Criterion Covered Total %
branch 49 54 90.7


line true false branch
40 15 54 if $line =~ /^\s*$/msx
41 3 51 if ($excludes)
42 1 2 if ($line =~ /^\s*[)]\s*$/msx) { }
1 1 elsif ($line =~ /\s*(\S+)\s+(\S+)/msx) { }
46 1 0 unless defined $m->{'exclude'}{$1}
54 4 47 if ($replaces)
55 1 3 if ($line =~ /^\s*[)]\s*$/msx) { }
2 1 elsif ($line =~ /^\s*(\S+)\s+=>\s+(\S+)\s*$/msx) { }
60 0 2 if defined $m->{'replace'}{$1}
68 5 42 if ($requires)
69 1 4 if ($line =~ /^\s*[)]\s*$/msx) { }
3 1 elsif ($line =~ /^\s*(\S+)\s+(\S+).*$/msx) { }
74 0 3 if defined $m->{'require'}{$1}
83 12 30 if ($line =~ /^module\s+(\S+)$/msx) { }
12 18 elsif ($line =~ /^go\s+(\S+)$/msx) { }
2 16 elsif ($line =~ /^exclude\s+[(]\s*$/msx) { }
2 14 elsif ($line =~ /^replace\s+[(]\s*$/msx) { }
2 12 elsif ($line =~ /^require\s+[(]\s*$/msx) { }
3 9 elsif ($line =~ /^exclude\s+(\S+)\s+(\S+)\s*$/msx) { }
1 8 elsif ($line =~ /^replace\s+(\S+)\s+=>\s+(\S+)\s*$/msx) { }
1 7 elsif ($line =~ /^require\s+(\S+)+\s+(\S+).*$/msx) { }
1 6 elsif ($line =~ m[^\s*//.*$]mx) { }
107 2 1 unless defined $m->{'exclude'}{$1}
114 0 1 if defined $m->{'replace'}{$1}
121 0 1 if defined $m->{'require'}{$1}
134 1 3 unless defined $m->{'module'}
135 1 2 unless defined $m->{'go'}