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 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 25 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 20 | ||||||
5 | 1 | 1 | 4 | use constant api_version => 0; | |||
1 | 3 | ||||||
1 | 118 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 2 | 2 | 0 | 4 | my($class) = @_; | ||
10 | 2 | 12 | bless {}, $class; | ||||
11 | } | ||||||
12 | |||||||
13 | sub bar | ||||||
14 | { | ||||||
15 | 1 | 1 | 0 | 3 | my($self, @args) = @_; | ||
16 | 1 | 4 | $self->{bar} = \@args; | ||||
17 | } | ||||||
18 | |||||||
19 | 1; |