File Coverage

blib/lib/JSON/TypeInference/Type/Atom.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 14 16 87.5


line stmt bran cond sub pod time code
1             package JSON::TypeInference::Type::Atom;
2 4     4   2396 use strict;
  4         8  
  4         100  
3 4     4   20 use warnings;
  4         6  
  4         339  
4              
5             sub new {
6 46     46 0 13799   my ($class) = @_;
7 46         185   return bless {}, $class;
8             }
9              
10             sub signature {
11 11     11 0 36   my ($self) = @_;
12 11         37   return ref($self)->name;
13             }
14              
15             1;
16             __END__
17            
18             =encoding utf-8
19            
20             =head1 NAME
21            
22             JSON::TypeInference::Type::Atom - Base class for JSON value types
23            
24             =head1 DESCRIPTION
25            
26             C< JSON::TypeInference::Type::Atom > is a base class for JSON value type and provides some default implementations.
27            
28             It also introduces a convention that the inherited type's signature is its name.
29            
30             =head1 AUTHOR
31            
32             aereal E<lt>aereal@aereal.orgE<gt>
33            
34             =cut
35            
36