| examples/json.pl | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 10 | 10 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 3 | 100.0 |
| pod | n/a | ||
| total | 13 | 13 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 5632 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 62 | ||||||
| 2 | 1 | 1 | 19 | use 5.020; | |||
| 1 | 4 | ||||||
| 3 | 1 | 1 | 563 | use Data::Section::Pluggable; | |||
| 1 | 5 | ||||||
| 1 | 1675 | ||||||
| 4 | |||||||
| 5 | 1 | 270662 | my $dsp = Data::Section::Pluggable->new | ||||
| 6 | ->add_plugin('json'); | ||||||
| 7 | |||||||
| 8 | # prints "Welcome to Perl" | ||||||
| 9 | 1 | 5 | say $dsp->get_data_section('hello.json')->{message}; | ||||
| 10 | |||||||
| 11 | __DATA__ |