blib/lib/Game/TileMap/_Utils.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Game::TileMap::_Utils; | ||||||
2 | $Game::TileMap::_Utils::VERSION = '0.002'; | ||||||
3 | 2 | 2 | 28 | use v5.10; | |||
2 | 10 | ||||||
4 | 2 | 2 | 13 | use strict; | |||
2 | 4 | ||||||
2 | 40 | ||||||
5 | 2 | 2 | 10 | use warnings; | |||
2 | 4 | ||||||
2 | 193 | ||||||
6 | |||||||
7 | sub trim | ||||||
8 | { | ||||||
9 | 20 | 20 | 0 | 27 | my $str = shift; | ||
10 | 20 | 65 | $str =~ s/\A \s+ | \s+ \z//gx; | ||||
11 | 20 | 59 | return $str; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; | ||||||
15 |