script/13.renew.write.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2  
3 BEGIN{push @INC, "./../blib/lib/"}
4  
5 use Biblio::ILL::ISO::Renew;
6  
7 #
8 # transaction-id
9 #
10 my $tid = new Biblio::ILL::ISO::TransactionId("PLS","001","",
11 new Biblio::ILL::ISO::SystemId("MWPL"));
12  
13 #
14 # service-date-time
15 #
16 my $sdt = new Biblio::ILL::ISO::ServiceDateTime( new Biblio::ILL::ISO::DateTime("20030623","114400"),
17 new Biblio::ILL::ISO::DateTime("20030623","114015")
18 );
19  
20 #
21 # requester-id
22 #
23 my $reqid = new Biblio::ILL::ISO::SystemId();
24 $reqid->set_person_name("David A. Christensen");
25  
26 #
27 # responder-id
28 #
29 my $resid = new Biblio::ILL::ISO::SystemId("MWPL");
30  
31 #
32 # desired-due-date
33 #
34 my $ddd = new Biblio::ILL::ISO::ISODate("20030814");
35  
36 #
37 # requester-note
38 #
39 my $rn = new Biblio::ILL::ISO::ILLString("This is a requester-note.");
40  
41  
42 #-------------------------------------------------------------------------------------------
43  
44 my $msg = new Biblio::ILL::ISO::Renew();
45  
46 # Minimum required:
47 $msg->set_protocol_version_num("version-2");
48 $msg->set_transaction_id( $tid );
49 $msg->set_service_date_time( $sdt );
50  
51 # Extra, useful info:
52 $msg->set_requester_id( $reqid );
53 $msg->set_requester_id( $resid );
54 $msg->set_desired_due_date( $ddd );
55 $msg->set_requester_note( $rn );
56  
57 #
58 #print "\n-as_pretty_string------------------------------------\n";
59 #print $msg->as_pretty_string();
60 #print "\n-----------------------------------------------------\n";
61 #
62 #print "\n-debug(ans->as_asn())--------------------------------\n";
63 #my $href = $msg->as_asn();
64 #print $msg->debug($href);
65 #print "\n-----------------------------------------------------\n";
66 #
67 #$msg->encode();
68 #
69  
70 #print "\n-write-----------------------------------------------\n";
71 $msg->write("msg_13.renew.ber");
72 #print "\n-----------------------------------------------------\n";
73  
74 #print "---end---\n";
75