File Coverage

Car1.pm
Criterion Covered Total %
statement 1 1 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod 0 1 0.0
total 2 3 66.6


line stmt bran cond sub pod time code
1             package Car1;
2              
3             my $listgroupname = 'vehicles';
4              
5             my $level1 =
6             [
7             [ "car-makers", "Select a maker", "", "dummy-list" ],
8             [ "car-makers", "Toyota", "Toyota", "Toyota" ],
9             [ "car-makers", "Honda", "Honda", "Honda" ],
10             [ "car-makers", "Chrysler", "Chrysler", "Chrysler", 1 ],
11             [ "car-makers", "Dodge", "Dodge", "Dodge" ],
12             [ "car-makers", "Ford", "Ford", "Ford" ]
13             ];
14              
15             my $level2 =
16             [
17              
18             ["dummy-list", "Not available", "", "dummy-sub"],
19              
20             [ "Toyota", "--- Toyota vehicles ---", "", "dummy-list" ],
21             [ "Toyota", "Cars", "car", "Toyota-Cars" ],
22             [ "Toyota", "SUVs/Van", "suv", "Toyota-SUVs/Van" ],
23             [ "Toyota", "Trucks", "truck", "Toyota-Trucks", 1 ],
24              
25             [ "Honda", "--- Honda vehicles ---", "", "dummy-list" ],
26             [ "Honda", "Cars", "car", "Honda-Cars" ],
27             [ "Honda", "SUVs/Van", "suv", "Honda-SUVs/Van", 1 ],
28              
29             [ "Chrysler", "--- Chrysler vehicles ---", "", "dummy-list" ],
30             [ "Chrysler", "Cars", "car", "Chrysler-Cars", 1 ],
31             [ "Chrysler", "SUVs/Van", "suv", "Chrysler-SUVs/Van" ],
32              
33             [ "Dodge", "--- Dodge vehicles ---", "", "dummy-list" ],
34             [ "Dodge", "Cars", "car", "Dodge-Cars" ],
35             [ "Dodge", "SUVs/Van", "suv", "Dodge-SUVs/Van" ],
36             [ "Dodge", "Trucks", "truck", "Dodge-Trucks" ],
37              
38             [ "Ford", "--- Ford vehicles ---", "", "dummy-list" ],
39             [ "Ford", "Cars", "car", "Ford-Cars" ],
40             [ "Ford", "SUVs/Van", "suv", "Ford-SUVs/Van" ],
41             [ "Ford", "Trucks", "truck", "Ford-Trucks" ],
42              
43             ];
44              
45             my $level3 =
46             [
47             [ "dummy-sub", "Not available", "" ],
48              
49             [ "Dodge-Cars", "--- Dodge cars ---", "" ],
50             [ "Dodge-Cars", "Intrepid", "Intrepid" ],
51             [ "Dodge-Cars", "Neon", "Neon" ],
52             [ "Dodge-Cars", "SRT-4", "SRT-4" ],
53             [ "Dodge-Cars", "Stratus Coupe", "Stratus Coupe" ],
54             [ "Dodge-Cars", "Stratus Sedan", "Stratus Sedan" ],
55             [ "Dodge-Cars", "Viper", "Viper" ],
56              
57             [ "Dodge-SUVs/Van", "--- Dodge SUVs/Van ---", "" ],
58             [ "Dodge-SUVs/Van", "Caravan", "Caravan" ],
59             [ "Dodge-SUVs/Van", "Durango", "Durango" ],
60             [ "Dodge-SUVs/Van", "Ram Van", "Ram Van" ],
61              
62             [ "Dodge-Trucks", "--- Dodge trucks ---", "" ],
63             [ "Dodge-Trucks", "Dakota", "Dakota" ],
64             [ "Dodge-Trucks", "Ram Pickup", "Ram Pickup" ],
65              
66             [ "Chrysler-Cars", "--- Chrysler cars ---", "" ],
67             [ "Chrysler-Cars", "300M", "300M" ],
68             [ "Chrysler-Cars", "PT Cruiser", "PT Cruiser", 1 ],
69             [ "Chrysler-Cars", "Concorde", "Concorde" ],
70             [ "Chrysler-Cars", "Sebring Coupe", "Sebring Coupe" ],
71             [ "Chrysler-Cars", "Sebring Sedan", "Sebring Sedan" ],
72             [ "Chrysler-Cars", "Sebring Convertible", "Sebring Convertible", 1 ],
73              
74             [ "Chrysler-SUVs/Van", "--- Chrysler SUVs/Van ---", "" ],
75             [ "Chrysler-SUVs/Van", "Town & Country", "Town & Country" ],
76             [ "Chrysler-SUVs/Van", "Voyager", "Voyager" ],
77              
78             [ "Honda-Cars", "--- Honda cars ---", "" ],
79             [ "Honda-Cars", "Accord Sedan", "Accord Sedan" ],
80             [ "Honda-Cars", "Accord Coupe", "Accord Coupe" ],
81             [ "Honda-Cars", "Civic Sedan", "Civic Sedan" ],
82             [ "Honda-Cars", "Civic Coupe", "Civic Coupe" ],
83             [ "Honda-Cars", "Civic Hybrid", "Civic Hybrid" ],
84             [ "Honda-Cars", "Civic Si", "Civic Si" ],
85             [ "Honda-Cars", "Civic GX", "Civic GX" ],
86             [ "Honda-Cars", "Insight", "Insight" ],
87             [ "Honda-Cars", "S2000", "S2000" ],
88              
89             [ "Honda-SUVs/Van", "--- Honda SUVs/Van ---", "" ],
90             [ "Honda-SUVs/Van", "CR-V", "CR-V" ],
91             [ "Honda-SUVs/Van", "Pilot", "Pilot" ],
92             [ "Honda-SUVs/Van", "Odyssey", "Odyssey", 1 ],
93              
94              
95             [ "Toyota-Cars", "--- Toyota cars ---", "" ],
96             [ "Toyota-Cars", "Avalon", "Avalon" ],
97             [ "Toyota-Cars", "Camry", "Camry" ],
98             [ "Toyota-Cars", "Celica", "Celica" ],
99             [ "Toyota-Cars", "Corolla", "Corolla" ],
100             [ "Toyota-Cars", "ECHO", "ECHO" ],
101             [ "Toyota-Cars", "Matrix", "Matrix" ],
102             [ "Toyota-Cars", "MR2 Spyder", "MR2 Spyder" ],
103             [ "Toyota-Cars", "Prius", "Prius" ],
104              
105             [ "Toyota-SUVs/Van", "--- Toyota SUVs/Van ---", "" ],
106             [ "Toyota-SUVs/Van", "4Runner", "4Runner" ],
107             [ "Toyota-SUVs/Van", "Highlander", "Highlander" ],
108             [ "Toyota-SUVs/Van", "Land Cruiser", "Land Cruiser" ],
109             [ "Toyota-SUVs/Van", "RAV4", "RAV4" ],
110             [ "Toyota-SUVs/Van", "Sequoia", "Sequoia" ],
111             [ "Toyota-SUVs/Van", "Sienna", "Sienna", 1 ],
112              
113             [ "Toyota-Trucks", "--- Toyota trucks ---", "" ],
114             [ "Toyota-Trucks", "Tacoma", "Tacoma" ],
115             [ "Toyota-Trucks", "Tundra", "Tundra", 1 ],
116              
117             [ "Ford-Cars", "--- Ford cars ---", "" ],
118             [ "Ford-Cars", "ZX2", "ZX2" ],
119             [ "Ford-Cars", "Focus", "Focus" ],
120             [ "Ford-Cars", "Taurus", "Taurus" ],
121             [ "Ford-Cars", "Crown Victoria", "Crown Victoria" ],
122             [ "Ford-Cars", "Mustang", "Mustang" ],
123             [ "Ford-Cars", "Thunderbird", "Thunderbird" ],
124              
125             [ "Ford-SUVs/Van", "--- Ford SUVs/Van ---", "" ],
126             [ "Ford-SUVs/Van", "Escape", "Escape" ],
127             [ "Ford-SUVs/Van", "Explorer", "Explorer" ],
128             [ "Ford-SUVs/Van", "Expedition", "Expedition" ],
129             [ "Ford-SUVs/Van", "Excursion", "Excursion" ],
130             [ "Ford-SUVs/Van", "Windstar", "Windstar" ],
131             [ "Ford-SUVs/Van", "Econoline", "Econoline" ],
132              
133             [ "Ford-Trucks", "--- Ford trucks ---", "" ],
134             [ "Ford-Trucks", "Ranger", "Ranger" ],
135             [ "Ford-Trucks", "F-150", "F-150" ],
136             [ "Ford-Trucks", "F-250", "F-250" ],
137             [ "Ford-Trucks", "F-350", "F-350" ],
138              
139             ];
140              
141              
142              
143              
144             sub data {
145              
146             (
147 1     1 0 332 data => [ $level1, $level2, $level3 ],
148             listgroupname => $listgroupname,
149             )
150            
151             }
152              
153             1,