blib/lib/Web/Authn/NullObject.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 57 CC 3 SCAR 11.7
CC
3
Cov
0%
new
6.0
AUTOLOAD
6.0
BEGIN
2.0
CRAP 3.2
1 ##----------------------------------------------------------------------------
2 ## WebAuthn - ~/lib/Web/Authn/NullObject.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2026 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2026/09/10
7 ## Modified 2026/09/11
8 ## All rights reserved
9 ##
10 ## This program is free software; you can redistribute it and/or modify it
11 ## under the same terms as Perl itself.
12 ##----------------------------------------------------------------------------
13 package Web::Authn::NullObject;
14 BEGIN
15 {
16 use strict;
17 use warnings;
18 use vars qw( $VERSION $AUTOLOAD );
19 use overload (
20 '""' => sub{ '' },
21 bool => sub{ 0 },
22 fallback => 1,
23 );
24 use Wanted;
25 our $VERSION = 'v0.2.0';
26 };
27  
28 use strict;
29 use warnings;
30  
31 sub new
32 {
33 my $this = shift( @_ );
34 my $ref = @_ ? { @_ } : {};
35 return( bless( $ref => ( ref( $this ) || $this ) ) );
36 }
37  
38 sub AUTOLOAD
39 {
40 my( $method ) = our $AUTOLOAD =~ /([^:]+)$/;
41 my $self = shift( @_ );
42 if( want( 'OBJECT' ) )
43 {
44 rreturn( $self );
45 }
46 # Otherwise, we return undef; Empty return returns undef in scalar context and empty list in list context
47 return;
48 };
49  
50 sub DESTROY { }
51  
52 1;
53 # NOTE: POD
54 __END__