lib/CGI/OptimalQuery/ExportDataTool.pm

filter: Statementstmt 57.1% 4 / 7 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 2 totaltotal 33.3% 5 / 15 CC 2 SCAR 13.2
CC
2
Cov
44%
activate
6.0
on_open
2.0
BEGIN
1.0
CRAP 3.8
« blib/lib/CGI/OptimalQuery/SimpleQuery.pm ↑ Summary lib/CGI/OptimalQuery/LoadSearchTool.pm »
1 package CGI::OptimalQuery::ExportDataTool;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶sub on_open {
Subroutine on_open: not called CC=1 SCAR=6.9
Pod undocumented
6 0 return "
7  
8  
9 <label class=ckbox><input type=checkbox class=OQExportAllResultsInd checked> all pages</label>
10 <p>
11 <strong>download as..</strong><br>
12 <a class=OQDownloadCSV href=#>CSV (Excel)</a>,
13 <a class=OQDownloadHTML href=#>HTML</a>,
14 <a class=OQDownloadJSON href=#>JSON</a>,
15 <a class=OQDownloadXML href=#>XML</a>";
16 }
17  
18 0 ▶sub activate {
Subroutine activate: not called CC=2 SCAR=17.9
Pod undocumented
19 0 my ($o) = @_;
20 $$o{schema}{tools}{export} ||= {
21 0 ▶ title => "Export Data",
Condition0%0/2
$o->{"schema"}{"tools"}{"export"} ||= {"title", "Export Data", "on_open", \&CGI::OptimalQuery::ExportDataTool::on_open}
l!l
00
MC/DC0%0/1
$o->{"schema"}{"tools"}{"export"} ||= {"title", "Export Data", "on_open", \&CGI::OptimalQuery::ExportDataTool::on_open}
$o->{"schema"}{"tools"}{"export"}
Truth table0%0/2
A
A= $o->{"schema"}{"tools"}{"export"}
Aresult
11
00
22 on_open => \&on_open
23 };
24 }
25  
26 1 1;
« blib/lib/CGI/OptimalQuery/SimpleQuery.pm ↑ Summary lib/CGI/OptimalQuery/LoadSearchTool.pm »