| 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
| |||||||||||
| 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__ | ||||||||||