Bencher/Formatter/RenderAsTextTable.pm

filter: Statementstmt 82.1% 23 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 76.3% 29 / 38 CC 2 SCAR 8.1
CC
2
Cov
77%
render_result
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Bencher/Formatter/DeleteNotesFieldIfEmpty.pm ↑ Summary Bencher/Formatter.pm »
1 package Bencher::Formatter::RenderAsTextTable;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 #use Log::Any::IfLOG '$log';
7  
8 1 ▶use parent qw(Bencher::Formatter);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Perinci::Result::Format::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 with 'Bencher::Role::ResultRenderer';
14  
15 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
16 1 our $DATE = '2023-07-08'; # DATE
17 1 our $DIST = 'Bencher-Backend'; # DIST
18 1 our $VERSION = '1.063'; # VERSION
19  
20 0 ▶sub render_result {
Subroutine render_result: not called CC=2 SCAR=17.9
Pod undocumented
21 0 my ($self, $envres) = @_;
22  
23 0 my $rres = ""; # render result
24  
25 0 ▶ $rres .= $envres->[3]{'table.title'}.":\n" if $envres->[3]{'table.title'};
Branch: 1 branch
BranchTrueFalseTotal
if $envres->[3]{"table.title"} 0 0 0
26 0 $rres .= Perinci::Result::Format::Lite::format($envres, 'text-pretty');
27  
28 0 $rres;
29 }
30  
31 1 1;
32 # ABSTRACT: Scale time to make it convenient
33  
34 __END__
« Bencher/Formatter/DeleteNotesFieldIfEmpty.pm ↑ Summary Bencher/Formatter.pm »