script/face-generator

filter: Statementstmt 100% 7 / 7 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 10 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 37.5% 9 / 24 CC 1 SCAR 0.0
CC
1
Cov
37%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Game/FaceGenerator.pm ↑ Summary
1 #!/usr/bin/env perl
2 # Copyright (C) 2018–2021 Alex Schroeder <alex@gnu.org>
3 #
4 # This program is free software: you can redistribute it and/or modify it under
5 # the terms of the GNU Affero General Public License as published by the Free
6 # Software Foundation, either version 3 of the License, or (at your option) any
7 # later version.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
12 # details.
13 #
14 # You should have received a copy of the GNU Affero General Public License along
15 # with this program. If not, see <http://www.gnu.org/licenses/>.
16  
17 =head1 NAME
18  
19 face-generator - a web app to combine random images into faces
20  
21 =head1 DESCRIPTION
22  
23 This command starts a web server using Mojolicious.
24  
25 In addition to the usual Mojolicious commands, this application also implements
26 the C<random> command using L<Game::FaceGenerator::Command::random>.
27  
28 =head1 SEE ALSO
29  
30 For more information, see L<Game::FaceGenerator> and
31 L<Game::FaceGenerator::Command::random>, and L<Mojolicious>.
32  
33 =head1 LICENSE
34  
35 GNU Affero General Public License
36  
37 =cut
38  
39 1 ▶use FindBin;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 1 ▶use lib "$FindBin::Bin/../lib";
Subroutine BEGIN: called CC=1 SCAR=0.0
41 1 ▶my $res = require Game::FaceGenerator
Branch: 1 branch
BranchTrueFalseTotal
my $res = require Game::FaceGenerator or not defined $res and die "Cannot load Game::FaceGenerator: $!" or ($res or die "Game::FaceGenerator did not return a true value\n") 0 0 0
Condition0%0/10
(my $res = require Game::FaceGenerator) || !defined($res) && die("Cannot load Game::FaceGenerator: $!") || ($res || die("Game::FaceGenerator did not return a true value\n"))
l!l&&r!l&&!r
000
my $res = require Game::FaceGenerator or not defined $res and die "Cannot load Game::FaceGenerator: $!"
l!l&&r!l&&!r
000
not defined $res and die "Cannot load Game::FaceGenerator: $!"
!ll
00
$res or die "Game::FaceGenerator did not return a true value\n"
l!l
00
MC/DC0%0/3
(my $res = require Game::FaceGenerator) || !defined($res) && die("Cannot load Game::FaceGenerator: $!") || ($res || die("Game::FaceGenerator did not return a true value\n"))
my $res = require Game::FaceGenerator not defined $res $res
Truth table0%0/4
A or not(B) || C
A= my $res = require Game::FaceGeneratorB= not defined $resC= $res
ABCresult
1XX1
01X1
0011
0000
42 or not defined $res and die "Cannot load Game::FaceGenerator: $!"
43 or not $res and die "Game::FaceGenerator did not return a true value\n";
« lib/Game/FaceGenerator.pm ↑ Summary