| lib/PatchReader/Base.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 11 | 12 | 91.6 | 
| branch | 1 | 2 | 50.0 | 
| condition | 1 | 3 | 33.3 | 
| subroutine | 3 | 3 | 100.0 | 
| pod | 0 | 2 | 0.0 | 
| total | 16 | 22 | 72.7 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | package PatchReader::Base; | ||||||
| 2 | |||||||
| 3 | 8 | 8 | 45 | use strict; | |||
| 8 | 14 | ||||||
| 8 | 1488 | ||||||
| 4 | |||||||
| 5 | sub new { | ||||||
| 6 | 24 | 24 | 0 | 1162 | my $class = shift; | ||
| 7 | 24 | 33 | 103 | $class = ref($class) || $class; | |||
| 8 | 24 | 42 | my $this = {}; | ||||
| 9 | 24 | 48 | bless $this, $class; | ||||
| 10 | |||||||
| 11 | 24 | 62 | return $this; | ||||
| 12 | } | ||||||
| 13 | |||||||
| 14 | sub sends_data_to { | ||||||
| 15 | 17 | 17 | 0 | 444 | my $this = shift; | ||
| 16 | 17 | 50 | 44 | if (defined($_[0])) { | |||
| 17 | 17 | 105 | $this->{TARGET} = $_[0]; | ||||
| 18 | } else { | ||||||
| 19 | 0 | return $this->{TARGET}; | |||||
| 20 | } | ||||||
| 21 | } | ||||||
| 22 | |||||||
| 23 | 1 |