DS/Target/Sink.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DS/Importer/Sub.pm ↑ Summary DS/Target/Sub.pm »
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 ▶use base qw{ DS::Target };
Subroutine BEGIN: called CC=1 SCAR=0.0
19
20 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21
22 5 ▶use DS::TypeSpec::Any;
Subroutine BEGIN: called CC=1 SCAR=0.0
23
24 5 our ($VERSION) = $DS::VERSION;
25 5 our ($REVISION) = '$Revision: 1.1 $' =~ /(\d+\.\d+)/;
26 5 our ($STATE) = '$State: Exp $' =~ /:\s+(.+\S)\s+\$$/;
27
28 6 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
29 6 my( $class, $source ) = @_;
30 6 return $class->SUPER::new( $DS::TypeSpec::Any, $source );
31 }
32
33 # Don't do anything when getting a row
34 55 ▶sub receive_row {}
Subroutine receive_row: called CC=1 SCAR=0.0
Pod documented
35
36 # All types are okay
37 6 ▶sub validate_source_type {
Subroutine validate_source_type: called CC=1 SCAR=0.0
Pod documented
38 6 return 1;
39 }
40
41 5 1;
« DS/Importer/Sub.pm ↑ Summary DS/Target/Sub.pm »