DummyRecord.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 0.0% 0 / 5 totaltotal 48.3% 15 / 31 CC 1 SCAR 4.1
CC
1
Cov
61%
session
2.0
rs
2.0
jsonStructure
2.0
CRAP 1.5
« Net/Z3950/FOLIO/SurrogateDiagnostic.pm ↑ Summary Net/Z3950/FOLIO.pm »
1 # USED ONLY FOR TESTING
2  
3  
4 package DummyResultSet;
5  
6 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
7 1 my $class = shift();
8 1 my($cfg) = @_;
9 1 return bless {
10 cfg => $cfg,
11 }, $class;
12 }
13  
14 0 ▶sub session {
Subroutine session: not called CC=1 SCAR=6.9
15 0 my $this = shift();
16 return {
17 cfg => $this->{cfg},
18 0 };
19 }
20  
21  
22 package DummyRecord;
23  
24 2 ▶use Net::Z3950::FOLIO::HoldingsRecords qw(makeHoldingsRecords);
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
27 1 my $class = shift();
28 1 my($folioHoldings, $marc, $cfg) = @_;
29  
30 1 return bless {
31 rs => new DummyResultSet($cfg),
32 folioHoldings => $folioHoldings,
33 marc => $marc,
34 }, $class;
35 }
36  
37 0 ▶sub rs { return shift()->{rs} }
Subroutine rs: not called CC=1 SCAR=6.9
Pod undocumented
38 0 ▶sub jsonStructure { return shift()->{folioHoldings} }
Subroutine jsonStructure: not called CC=1 SCAR=6.9
Pod undocumented
39 1 ▶sub marcRecord { return shift()->{marc} }
Subroutine marcRecord: called CC=1 SCAR=0.0
Pod undocumented
40  
41 0 ▶sub holdings {
Subroutine holdings: not called CC=1 SCAR=6.9
Pod undocumented
42 0 my $this = shift();
43 0 my($marc) = @_;
44  
45 0 return makeHoldingsRecords($this, $marc)
46 };
47  
48  
49 2 1;
« Net/Z3950/FOLIO/SurrogateDiagnostic.pm ↑ Summary Net/Z3950/FOLIO.pm »