blib/lib/Logic/Relational/Goal/True.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 75.0% 3 / 4 totaltotal 78.1% 25 / 32 CC 2 SCAR 3.4
CC
2
Cov
84%
expand
2.1
is_ground
2.0
BEGIN
1.0
CRAP 1.4
« lib/Logic/Relational/Goal/EndCall.pm ↑ Summary lib/Logic/Relational/Solution.pm »
1 package Logic::Relational::Goal::True;
2  
3 31 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 31 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 31 ▶use parent 'Logic::Relational::Goal';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Logic::Relational::Goal::True - Goal that always succeeds.
10  
11 =cut
12  
13 474 ▶sub new ($class) {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
14 474 return bless {}, $class;
15 }
16  
17 385 ▶sub expand ( $self, %args ) {
Subroutine expand: called CC=2 SCAR=7.4
Pod documented
18 385 my $state = $args{state};
19 385 my $remaining = $args{remaining};
20 385 my $succ = $state->derive( goals => $remaining, );
21 385 ▶ return $succ // ();
Condition33%1/3
$succ // ()
l!l&&r!l&&!r
38500
MC/DC0%0/2
$succ // ()
$succ ()
Truth table33%1/3
A // B
A= $succB= ()
ABresult
1X1
011
000
22 }
23  
24 535 ▶sub freshen ( $self, $var_map ) {
Subroutine freshen: called CC=1 SCAR=0.0
Pod documented
25 535 return $self;
26 }
27  
28 0 ▶sub is_ground ( $self, $subst ) {
Subroutine is_ground: not called CC=1 SCAR=6.9
Pod documented
29 0 return 1;
30 }
31  
32 31 1;
« lib/Logic/Relational/Goal/EndCall.pm ↑ Summary lib/Logic/Relational/Solution.pm »