Branch Coverage

blib/lib/AI/ExpertSystem/Simple/Knowledge.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
11 2 2 if scalar @_ != 2
12 1 1 unless defined $name
28 1 3 if scalar @_ != 1
37 3 6 if scalar @_ != 3
38 1 5 unless defined $value
39 1 4 unless defined $setter
41 1 3 if (defined $$self{'_value'})
52 1 2 if scalar @_ != 1
60 1 1 if scalar @_ != 1
68 1 7 if scalar @_ != 1
76 1 3 if (defined $$self{'_question'})
80 1 2 if scalar @_ < 3
81 1 1 unless defined $question
92 1 2 if scalar @_ != 1
94 1 1 unless (defined $$self{'_question'})
104 1 6 if scalar @_ != 1
112 1 1 if scalar @_ != 1