lib/OODoc/Text/Example.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 63.3% 19 / 30 CC 3 SCAR 17.4
CC
3
Cov
65%
init
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« lib/OODoc/Text/SubSubSection.pm ↑ Summary lib/OODoc/Index.pm »
1 # This code is part of Perl distribution OODoc version 3.05.
2 # The POD got stripped from this file by OODoc version 3.05.
3 # For contributors see file ChangeLog.
4  
5 # This software is copyright (c) 2003-2025 by Mark Overmeer.
6  
7 # This is free software; you can redistribute it and/or modify it under
8 # the same terms as the Perl 5 programming language system itself.
9 # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10  
11  
12 package OODoc::Text::Example;{
13 1 our $VERSION = '3.05';
14 }
15  
16 1 ▶use parent 'OODoc::Text';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use Log::Report 'oodoc';
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 #--------------------
24  
25 sub init($)
26 0 ▶{ my ($self, $args) = @_;
Subroutine init: not called CC=3 SCAR=24.8
Pod undocumented
27 0 ▶ $args->{type} ||= 'Example';
Condition0%0/2
$args->{"type"} ||= "Example"
l!l
00
MC/DC0%0/1
$args->{"type"} ||= "Example"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
Aresult
11
00
28 0 ▶ $args->{container} = delete $args->{container} or panic;
Branch: 1 branch
BranchTrueFalseTotal
$args->{"container"} = delete $args->{"container"} or &panic() 0 0 0
29 0 $self->SUPER::init($args);
30 }
31  
32 1 1;
« lib/OODoc/Text/SubSubSection.pm ↑ Summary lib/OODoc/Index.pm »