script/09.recall.write.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 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::Recall;
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 # responder-note
33 #
34 my $rn = new Biblio::ILL::ISO::ILLString("This is a responder-note.");
35  
36  
37 #-------------------------------------------------------------------------------------------
38  
39 my $msg = new Biblio::ILL::ISO::Recall();
40  
41 # Minimum required:
42 $msg->set_protocol_version_num("version-2");
43 $msg->set_transaction_id( $tid );
44 $msg->set_service_date_time( $sdt );
45  
46 # Extra, useful info:
47 $msg->set_requester_id( $reqid );
48 $msg->set_responder_id( $resid );
49 $msg->set_responder_note( $rn );
50  
51 #
52 #print "\n-as_pretty_string------------------------------------\n";
53 #print $msg->as_pretty_string();
54 #print "\n-----------------------------------------------------\n";
55 #
56 #print "\n-debug(ans->as_asn())--------------------------------\n";
57 #my $href = $msg->as_asn();
58 #print $msg->debug($href);
59 #print "\n-----------------------------------------------------\n";
60 #
61 #$msg->encode();
62 #
63  
64 #print "\n-write-----------------------------------------------\n";
65 $msg->write("msg_09.recall.ber");
66 #print "\n-----------------------------------------------------\n";
67  
68 #print "---end---\n";
69