Headline/PerlJobs.pm

filter: Statementstmt 52.3% 11 / 21 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 8 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 37.5% 15 / 40 CC 6 SCAR 33.4
CC
6
Cov
35%
item
42.0
BEGIN
1.0
BEGIN
1.0
CRAP 28.3
« Headline.pm ↑ Summary Headline/UsePerlJournals.pm »
1 package XML::RSS::Headline::PerlJobs;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base qw(XML::RSS::Headline);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 our $VERSION = 2.32;
7  
8 0 ▶sub item {
Subroutine item: not called CC=6 SCAR=37.4
Pod documented
9 0 my ($self,$item) = @_;
10 0 $self->SUPER::item($item); # set url and description
11  
12 0 my $key = 'http://jobs.perl.org/rss/';
13  
14 0 ▶ my $name = $item->{$key}{company_name} || '';
Condition0%0/2
$item->{$key}{'company_name'} || ''
l!l
00
MC/DC0%0/1
$item->{$key}{'company_name'} || ''
$item->{$key}{'company_name'}
Truth table0%0/2
A
A= $item->{$key}{'company_name'}
Aresult
11
00
15 0 ▶ my $location = $item->{$key}{location} || 'Unknown Location';
Condition0%0/2
$item->{$key}{'location'} || 'Unknown Location'
l!l
00
MC/DC0%0/1
$item->{$key}{'location'} || 'Unknown Location'
$item->{$key}{'location'}
Truth table0%0/2
A
A= $item->{$key}{'location'}
Aresult
11
00
16 0 ▶ my $hours = $item->{$key}{hours} || 'Unknown Hours';
Condition0%0/2
$item->{$key}{'hours'} || 'Unknown Hours'
l!l
00
MC/DC0%0/1
$item->{$key}{'hours'} || 'Unknown Hours'
$item->{$key}{'hours'}
Truth table0%0/2
A
A= $item->{$key}{'hours'}
Aresult
11
00
17 0 ▶ my $terms = $item->{$key}{employment_terms} || 'Unknown Terms';
Condition0%0/2
$item->{$key}{'employment_terms'} || 'Unknown Terms'
l!l
00
MC/DC0%0/1
$item->{$key}{'employment_terms'} || 'Unknown Terms'
$item->{$key}{'employment_terms'}
Truth table0%0/2
A
A= $item->{$key}{'employment_terms'}
Aresult
11
00
18  
19 0 ▶ my $name_location = $name ? $name . ' - ' . $location : $location;
Branch: 1 branch
BranchTrueFalseTotal
$name ? : 0 0 0
20 0 $self->headline("$item->{title}\n$name_location\n$hours, $terms");
21  
22 0 return;
23 }
24  
25 3 1;
26  
27 __END__
« Headline.pm ↑ Summary Headline/UsePerlJournals.pm »