examples/synopsis/entry.pl

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.7
CC
1
Cov
82%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« examples/list.pl ↑ Summary examples/synopsis/synopsis.pl »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶use Archive::Libarchive;
Subroutine BEGIN: called CC=1 SCAR=2.6
5  
6 my $text = "Hello World!\n";
7  
8 my $e = Archive::Libarchive::Entry->new;
9 $e->set_pathname("hello.txt");
10 $e->set_filetype('reg');
11 $e->set_size(length $text);
12 $e->set_mtime(time);
13 $e->set_mode(oct('0644'));
« examples/list.pl ↑ Summary examples/synopsis/synopsis.pl »