blib/lib/Articulate/Sortation/String.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 Articulate::Sortation::String; | ||||||
2 | 2 | 2 | 1758 | use strict; | |||
2 | 4 | ||||||
2 | 70 | ||||||
3 | 2 | 2 | 7 | use warnings; | |||
2 | 3 | ||||||
2 | 46 | ||||||
4 | |||||||
5 | 2 | 2 | 7 | use Moo; | |||
2 | 2 | ||||||
2 | 11 | ||||||
6 | with 'Articulate::Role::Sortation::AllYouNeedIsCmp'; | ||||||
7 | |||||||
8 | sub cmp { | ||||||
9 | 10 | 10 | 0 | 51 | my $self = shift; | ||
10 | 10 | 42 | return ( $_[0] cmp $_[1] ); | ||||
11 | } | ||||||
12 | |||||||
13 | 1; |