Condition Coverage

blib/lib/Finance/Bank/LaPoste.pm
Criterion Covered Total %
condition 0 32 0.0


and 3 conditions

line !l l&&!r l&&r condition
237 0 0 0 $flag eq "account_resume" and m[Solde ([\d\s,.+-]*)]
0 0 0 $flag eq "balance_cb" and /([\d\s,.+-]*)/
377 0 0 0 ($html =~ m[(.*?) euros] || $html =~ m[(.*?) €]) && $1
385 0 0 0 $date && $date =~ m[(\d+)/(\d+)]

or 2 conditions

line l !l condition
444 0 0 $separator || "\t"

or 3 conditions

line l !l&&r !l&&!r condition
237 0 0 0 /
250 0 0 0 $self->{'cb_accounts'} or $self->{'all_accounts'}
274 0 0 0 $self->{'ua'} ||= "LWP::UserAgent"->new("agent", "Mozilla")
367 0 0 0 $self->{'statements'} ||= do { my $retry; retry: $self->{'feedback'}->("get statements") if $self->{'feedback'}; my $response = $self->{'ua'}->request("HTTP::Request"->new("GET", $url)); die "can't access account $self->{'name'} statements\n" . $response->error_as_HTML unless $response->is_success; my $html = $response->content; $self->{'balance'} ||= do { my $balance = ($html =~ m[(.*?) euros] || $html =~ m[(.*?) €]) && $1; &$normalize_number($balance) }; my $l = &$parse_table($html); @$l = map({my($date, $description, $amount1, $amount2) = @$_; my $amount = &$normalize_number($amount2 || $amount1); $date && $date =~ m[(\d+)/(\d+)] ? [$date, $description, $amount] : ();} @$l); [map({my($date, $description, $amount) = @$_; my($day, $month, $year) = $date =~ m[(\d+)/(\d+)/(\d+)]; "Finance::Bank::LaPoste::Statement"->new("day", $day, "month", $month, "year", $year, "description", $description, "amount", $amount);} @$l)] }
376 0 0 0 $self->{'balance'} ||= do { my $balance = ($html =~ m[(.*?) euros] || $html =~ m[(.*?) €]) && $1; &$normalize_number($balance) }
384 0 0 0 $amount2 || $amount1