| Server IP : 104.21.94.62 / Your IP : 216.73.217.55 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.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