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 | 1 | ||||||
1 | 30 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 24 | ||||||
5 | 1 | 1 | 5 | use constant api_version => 0; | |||
1 | 3 | ||||||
1 | 121 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 2 | 2 | 0 | 6 | my($class) = @_; | ||
10 | 2 | 14 | 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; |