File Coverage

blib/lib/DS/Target/Sink.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 3 3 100.0
total 22 22 100.0


line stmt bran cond sub pod time code
1             #!perl
2            
3             # ########################################################################## #
4             # Title: Data stream sink
5             # Creation date: 2007-04-16
6             # Author: Michael Zedeler
7             # Description: Receives data and does nothing.
8             # Data Stream class
9             # File: $Source: /data/cvs/lib/DSlib/lib/DS/Target/Sink.pm,v $
10             # Repository: kronhjorten
11             # State: $State: Exp $
12             # Documentation: inline
13             # Recepient: -
14             # ########################################################################## #
15            
16             package DS::Target::Sink;
17            
18 5     5   3634 use base qw{ DS::Target };
  5         12  
  5         2463  
19            
20 5     5   32 use strict;
  5         11  
  5         146  
21            
22 5     5   2414 use DS::TypeSpec::Any;
  5         11  
  5         989  
23            
24             our ($VERSION) = $DS::VERSION;
25             our ($REVISION) = '$Revision: 1.1 $' =~ /(\d+\.\d+)/;
26             our ($STATE) = '$State: Exp $' =~ /:\s+(.+\S)\s+\$$/;
27            
28             sub new {
29 6     6 1 870 my( $class, $source ) = @_;
30 6         51 return $class->SUPER::new( $DS::TypeSpec::Any, $source );
31             }
32            
33             # Don't do anything when getting a row
34 55     55 1 677 sub receive_row {}
35            
36             # All types are okay
37             sub validate_source_type {
38 6     6 1 20 return 1;
39             }
40            
41             1;