DS/TypeSpec/Any.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DS/Source/Push.pm ↑ Summary DS/Importer/Sub.pm »
1 #!perl
2
3 # ########################################################################## #
4 # Title: Any type - wildcard typespec
5 # Creation date: 2007-03-05
6 # Author: Michael Zedeler
7 # Description: Class implementing a wildcard type spec that matches
8 # anything.
9 # File: $Source: /data/cvs/lib/DSlib/lib/DS/TypeSpec/Any.pm,v $
10 # Repository: kronhjorten
11 # State: $State: Exp $
12 # Documentation: inline
13 # Recepient: -
14 # ########################################################################## #
15
16 package DS::TypeSpec::Any;
17
18 6 ▶use base qw{ DS::TypeSpec };
Subroutine BEGIN: called CC=1 SCAR=0.0
19
20 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 6 ▶use Carp::Assert;
Subroutine BEGIN: called CC=1 SCAR=0.0
22
23 6 our ($VERSION) = $DS::VERSION;
24 6 our ($REVISION) = '$Revision: 1.1 $' =~ /(\d+\.\d+)/;
25
26 6 ▶sub contains {
Subroutine contains: called CC=1 SCAR=0.0
Pod undocumented
27 6 assert( $_[1]->isa('DS::TypeSpec') );
28 6 return 1;
29 }
30
31 6 $DS::TypeSpec::Any = new DS::TypeSpec::Any;
32
33 6 1;
« DS/Source/Push.pm ↑ Summary DS/Importer/Sub.pm »