blib/lib/oEdtk/XPath.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 12 | 12 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package oEdtk::XPath; | ||||||
2 | |||||||
3 | 1 | 1 | 1520 | use strict; | |||
1 | 3 | ||||||
1 | 49 | ||||||
4 | 1 | 1 | 6 | use warnings; | |||
1 | 2 | ||||||
1 | 35 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use base 'XML::XPath'; | |||
1 | 3 | ||||||
1 | 1024 | ||||||
7 | our $VERSION = 0.01; | ||||||
8 | |||||||
9 | sub findTextValue { | ||||||
10 | my ($self, $path, $context) = @_; | ||||||
11 | my $val = $self->findvalue($path, $context); | ||||||
12 | return "$val"; | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; |