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/ShowColumns.pm ↑ Summary blib/lib/CGI/OptimalQuery/CustomOutput.pm »
1 package CGI::OptimalQuery::ExportDataTool;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub on_open {
6 0 ▶ return "
Subroutine on_open: not called CC=1 SCAR=6.9
Pod undocumented
7 <label class=ckbox><input type=checkbox class=OQExportAllResultsInd checked> all pages</label>
8 <p>
9 <strong>download as..</strong><br>
10 <a class=OQDownloadCSV href=#>CSV (Excel)</a>,
11 <a class=OQDownloadHTML href=#>HTML</a>,
12 <a class=OQDownloadXML href=#>XML</a>";
13 }
14  
15 sub activate {
16 0 ▶ my ($o) = @_;
Subroutine activate: not called CC=2 SCAR=17.9
Pod undocumented
17 $$o{schema}{tools}{export} ||= {
18 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
19 on_open => \&on_open
20 };
21 }
22  
23 1 1;
« blib/lib/CGI/OptimalQuery/ShowColumns.pm ↑ Summary blib/lib/CGI/OptimalQuery/CustomOutput.pm »