| Server IP : 170.10.161.225 / Your IP : 216.73.216.78 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /lib64/perl5/vendor_perl/Devel/Cover/ |
Upload File : |
package Devel::Cover::Html_Common;
use strict;
use warnings;
our $VERSION = '1.33'; # VERSION
use Exporter;
our @ISA = "Exporter";
our @EXPORT_OK = "launch";
sub launch {
my ($package, $opt) = @_;
my $outfile = "$opt->{outputdir}/$opt->{option}{outputfile}";
if (eval { require Browser::Open }) {
Browser::Open::open_browser($outfile);
} else {
print STDERR "Devel::Cover: -launch requires Browser::Open\n";
}
}
=pod
=head1 NAME
Devel::Cover::Report::Html_Common - Common code for HTML reporters
=head1 VERSION
version 1.33
=head1 DESCRIPTION
This module provides common functionality for HTML reporters.
=head1 Functions
=over 4
=item launch
Launch a browser to view the report. HTML reporters just need to import this
function to enable the -launch flag for that report type.
=back
=head1 SEE ALSO
Devel::Cover
=cut
1