eg/custom-setup/lib/My/GPU/DebianMirror.pm

filter: Statementstmt 100% 11 / 11 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 2 SCAR 4.1
CC
2
Cov
100%
is_debian_archive_uri
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/Rex/GPU/NVIDIA/Setup/SUSE.pm ↑ Summary eg/custom-setup/lib/My/GPU/Setup.pm »
1 package My::GPU::DebianMirror;
2 # Example: a Debian host whose sources point at a mirror of your own
3 # (apt-cacher-ng, a company mirror) without
4 # signed-by=/usr/share/keyrings/debian-archive-keyring.gpg. Rex::GPU enables
5 # contrib non-free non-free-firmware only in entries it recognises as
6 # Debian's archive; this class teaches it the mirror. Everything else is the
7 # built-in Debian setup.
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 extends 'Rex::GPU::NVIDIA::Setup::Debian';
12  
13 6 ▶sub is_debian_archive_uri {
Subroutine is_debian_archive_uri: called CC=2 SCAR=6.9
Pod documented
14 6 my ( $self, $uri ) = @_;
15 # only URIs that serve Debian's own archive (main is extended by non-free)
16 6 ▶ return 1 if $uri =~ m{^http://apt-cache\.corp\.example:3142/debian(?:-security)?/?$};
Branch: 1 branch
BranchTrueFalseTotal
if $uri =~ m[^http://apt-cache\.corp\.example:3142/debian(?:-security)?/?$] 3 3 6
17 3 return $self->SUPER::is_debian_archive_uri($uri);
18 }
19  
20 1 1;
« lib/Rex/GPU/NVIDIA/Setup/SUSE.pm ↑ Summary eg/custom-setup/lib/My/GPU/Setup.pm »