blib/lib/SQL/Statement/Function/ByName/ARGMAXSTR.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 17 | 18 | 94.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package SQL::Statement::Function::ByName::ARGMAXSTR; | ||||||
2 | |||||||
3 | our $DATE = '2017-01-25'; # DATE | ||||||
4 | our $VERSION = '0.002'; # VERSION | ||||||
5 | |||||||
6 | 1 | 1 | 1396 | use 5.010001; | |||
1 | 2 | ||||||
7 | 1 | 1 | 3 | use strict; | |||
1 | 1 | ||||||
1 | 16 | ||||||
8 | 1 | 1 | 2 | use warnings; | |||
1 | 1 | ||||||
1 | 21 | ||||||
9 | |||||||
10 | 1 | 1 | 3 | use List::Util qw(maxstr); | |||
1 | 1 | ||||||
1 | 69 | ||||||
11 | |||||||
12 | sub SQL_FUNCTION_ARGMAXSTR { | ||||||
13 | 1 | 1 | 0 | 18 | maxstr(@_[2..$#_]); | ||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | # ABSTRACT: SQL function to return the (string-wise) maximum parameter | ||||||
18 | |||||||
19 | __END__ |