| blib/lib/Farly/Builder.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 24 | 24 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 8 | 8 | 100.0 |
| pod | 0 | 3 | 0.0 |
| total | 32 | 35 | 91.4 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Farly::Builder; | ||||||
| 2 | |||||||
| 3 | 9 | 9 | 16672 | use 5.008008; | |||
| 9 | 30 | ||||||
| 9 | 321 | ||||||
| 4 | 9 | 9 | 46 | use strict; | |||
| 9 | 13 | ||||||
| 9 | 233 | ||||||
| 5 | 9 | 9 | 52 | use warnings; | |||
| 9 | 19 | ||||||
| 9 | 208 | ||||||
| 6 | 9 | 9 | 46 | use Carp; | |||
| 9 | 104 | ||||||
| 9 | 585 | ||||||
| 7 | 9 | 9 | 842 | use Log::Any qw($log); | |||
| 9 | 2458 | ||||||
| 9 | 72 | ||||||
| 8 | |||||||
| 9 | our $VERSION = '0.26'; | ||||||
| 10 | |||||||
| 11 | sub new { | ||||||
| 12 | 7 | 7 | 0 | 30 | my $class = shift; | ||
| 13 | |||||||
| 14 | 7 | 31 | my $self = { | ||||
| 15 | FILE => undef, | ||||||
| 16 | CONTAINER => undef, | ||||||
| 17 | }; | ||||||
| 18 | 7 | 22 | bless( $self, $class ); | ||||
| 19 | |||||||
| 20 | 7 | 82 | $log->info("$self NEW"); | ||||
| 21 | |||||||
| 22 | 7 | 119 | return $self; | ||||
| 23 | } | ||||||
| 24 | |||||||
| 25 | sub set_file { | ||||||
| 26 | 5 | 5 | 0 | 11 | my ( $self, $file ) = @_; | ||
| 27 | |||||||
| 28 | 5 | 10 | $self->{FILE} = $file; | ||||
| 29 | |||||||
| 30 | 5 | 32 | $log->info( "$self SET FILE TO " . $self->{FILE} ); | ||||
| 31 | } | ||||||
| 32 | |||||||
| 33 | sub file { | ||||||
| 34 | 5 | 5 | 0 | 49 | return $_[0]->{FILE}; | ||
| 35 | } | ||||||
| 36 | |||||||
| 37 | 1; | ||||||
| 38 | __END__ |