Branch Coverage

blib/lib/OBO/Core/IDspace.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
38 5 5 if ($_[1]) { }
41 0 5 unless defined $_[0]{'LOCAL_IDSPACE'}
56 5 2 if ($_[1]) { }
59 0 2 unless defined $_[0]{'URI'}
74 5 2 if ($_[1]) { }
77 0 2 unless defined $_[0]{'LOCAL_IDSPACE'} and defined $_[0]{'URI'}
92 12 9 if ($_[1] and $_[2]) { }
95 12 0 if $_[3]
98 0 9 unless defined $_[0]{'LOCAL_IDSPACE'} and defined $_[0]{'URI'}
100 8 1 if defined $_[0]{'DESCRIPTION'} and $_[0]{'DESCRIPTION'} ne ''
101 1 8 if $result =~ /^\s*$/
116 100 0 if ($_[1] and eval { do { $_[1]->isa('OBO::Core::IDspace') } }) { }
118 0 100 unless defined $_[0]{'LOCAL_IDSPACE'} and defined $_[0]{'URI'}
119 0 100 unless defined $_[1]{'LOCAL_IDSPACE'} and defined $_[1]{'URI'}