blib/lib/Alien/premake5.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 13 | 84.6 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 6 | 66.6 |
pod | 2 | 2 | 100.0 |
total | 17 | 21 | 80.9 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Alien::premake5; | ||||||
2 | # ABSTRACT: Build or find premake5 | ||||||
3 | |||||||
4 | our $VERSION = '0.001'; | ||||||
5 | |||||||
6 | 1 | 1 | 205025 | use strict; | |||
1 | 13 | ||||||
1 | 41 | ||||||
7 | 1 | 1 | 8 | use warnings; | |||
1 | 3 | ||||||
1 | 43 | ||||||
8 | 1 | 1 | 9 | use base 'Alien::Base'; | |||
1 | 3 | ||||||
1 | 411 | ||||||
9 | |||||||
10 | sub exe { | ||||||
11 | 1 | 1 | 1 | 4948 | my ($class) = @_; | ||
12 | 1 | 7 | $class->runtime_prop->{command}; | ||||
13 | } | ||||||
14 | |||||||
15 | sub alien_helper { | ||||||
16 | 0 | 0 | return +{ premake5 => sub { Alien::premake5->exe } } | ||||
17 | 0 | 0 | 1 | } | |||
18 | |||||||
19 | 1; | ||||||
20 | |||||||
21 | __END__ |