Condition Coverage

blib/lib/OpenGuides/JSON.pm
Criterion Covered Total %
condition 44 52 84.6


and 3 conditions

line !l l&&!r l&&r condition
27 1 0 4 $wiki and UNIVERSAL::isa($wiki, 'Wiki::Toolkit')
34 1 0 3 $config and UNIVERSAL::isa($config, 'OpenGuides::Config')

or 2 conditions

line l !l condition
57 1 2 $config->default_city || ''
58 1 2 $config->default_country || ''
59 3 0 $config->site_desc || ''
81 1 2 $node_data{'metadata'}{'phone'}[0] || ''
82 0 3 $node_data{'metadata'}{'fax'}[0] || ''
83 1 2 $node_data{'metadata'}{'website'}[0] || ''
84 1 2 $node_data{'metadata'}{'opening_hours_text'}[0] || ''
86 0 3 $node_data{'metadata'}{'address'}[0] || ''
87 1 2 $node_data{'metadata'}{'postcode'}[0] || ''
91 2 1 $node_data{'metadata'}{'latitude'}[0] || ''
92 2 1 $node_data{'metadata'}{'longitude'}[0] || ''
94 1 2 $node_data{'metadata'}{'username'}[0] || ''
95 1 2 $node_data{'metadata'}{'os_x'}[0] || ''
96 1 2 $node_data{'metadata'}{'os_y'}[0] || ''
97 0 3 $node_data{'metadata'}{'category'} || []
98 1 2 $node_data{'metadata'}{'locale'} || []
99 1 2 $node_data{'metadata'}{'summary'}[0] || ''
102 1 2 $node_data{'metadata'}{'node_image'}[0] || ''
103 1 2 $node_data{'metadata'}{'node_image_url'}[0] || ''
104 1 2 $node_data{'metadata'}{'node_image_licence'}[0] || ''

or 3 conditions

line l !l&&r !l&&!r condition
88 0 1 2 $node_data{'metadata'}{'city'}[0] || $$self{'default_city'}
89 0 1 2 $node_data{'metadata'}{'country'}[0] || $$self{'default_country'}