Agent/Output/StandardError.pm

filter: Statementstmt 50.0% 8 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 41.6% 10 / 24 CC 2 SCAR 7.6
CC
2
Cov
44%
save
3.8
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« Agent/Profile.pm ↑ Summary Agent/Frameworks.pm »
1 # Output method purely for testing some concepts on the agent before implementing the server
2  
3 package PerlGuard::Agent::Output::StandardError;
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends 'PerlGuard::Agent::Output';
6  
7 # Takes a profile object and saves it
8 0 ▶sub save {
Subroutine save: not called CC=2 SCAR=13.4
Pod undocumented
9 0 my $self = shift;
10 0 my $profile = shift;
11  
12 0 ▶ return unless $profile->should_save();
Branch: 1 branch
BranchTrueFalseTotal
unless $profile->should_save 0 0 0
13  
14 1 ▶ use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 print STDERR "======\n";
17 0 print STDERR "Profiler ID " . $profile->uuid() . "\n";
18 0 print STDERR "Total elapsed time " . $profile->total_elapsed_time() . "\n";
19 0 print STDERR Dumper $profile->database_transactions();
20 0 print STDERR "======\n";
21 }
22  
23 0 ▶sub flush {
Subroutine flush: not called CC=1 SCAR=0.0
Pod undocumented
24 #noop
25 }
26  
27  
28 1 1;
« Agent/Profile.pm ↑ Summary Agent/Frameworks.pm »