corpus/ffi_build_plugin/lib2/FFI/Build/Plugin/Foo1.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 18 | 20 | 90.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package FFI::Build::Plugin::Foo1; | ||||||
2 | |||||||
3 | 1 | 1 | 7 | use strict; | |||
1 | 2 | ||||||
1 | 31 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 25 | ||||||
5 | 1 | 1 | 5 | use constant api_version => 0; | |||
1 | 2 | ||||||
1 | 123 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 2 | 2 | 0 | 5 | my($class) = @_; | ||
10 | 2 | 13 | bless {}, $class; | ||||
11 | } | ||||||
12 | |||||||
13 | sub bar | ||||||
14 | { | ||||||
15 | 1 | 1 | 0 | 4 | my($self, @args) = @_; | ||
16 | 1 | 6 | $self->{bar} = \@args; | ||||
17 | } | ||||||
18 | |||||||
19 | 1; |