Quiq/Mechanize.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 1 / 1 totaltotal 75.0% 18 / 24 CC 1 SCAR 2.9
CC
1
Cov
76%
new
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« Quiq/Text/Generator.pm ↑ Summary Quiq/Sql/Analyzer.pm »
1 # -----------------------------------------------------------------------------
2  
3 =encoding utf8
4  
5 =head1 NAME
6  
7 Quiq::Mechanize - Überlagerung von WWW::Mechanize
8  
9 =head1 BASE CLASSES
10  
11 =over 2
12  
13 =item *
14  
15 WWW::Mechanize
16  
17 =item *
18  
19 L<Quiq::Object>
20  
21 =back
22  
23 =cut
24  
25 # -----------------------------------------------------------------------------
26  
27 package Quiq::Mechanize;
28 1 ▶use base qw/WWW::Mechanize Quiq::Object/;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 1 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
33  
34 1 our $VERSION = '1.240';
35  
36 # -----------------------------------------------------------------------------
37  
38 =head1 METHODS
39  
40 =head2 Konstruktor
41  
42 =head3 new() - Instantiiere Objekt
43  
44 =head4 Synopsis
45  
46 $mech = $class->new(@keyVal);
47  
48 =head4 Arguments
49  
50 =over 4
51  
52 =item @keyVal
53  
54 Attributwerte von WWW::Mechnize und LWP::UserAgent.
55  
56 =back
57  
58 =head4 Returns
59  
60 Object
61  
62 =head4 Description
63  
64 Instantiiere ein Objekt der Klasse und liefere eine Referenz
65 auf dieses Objekt zurück.
66  
67 =cut
68  
69 # -----------------------------------------------------------------------------
70  
71 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
72 0 my $class = shift;
73  
74 return $class->SUPER::new(
75 autocheck => 1,
76 stack_depth => 0,
77 strict_forms => 1,
78 0 ▶ onerror => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
79 0 my $msg = join '',@_;
80 0 $class->throw(
81 'MECHANIZE-00001: Fatal error',
82 Error => $msg,
83 );
84 },
85 0 @_,
86 );
87 }
88  
89 # -----------------------------------------------------------------------------
90  
91 =head1 VERSION
92  
93 1.240
94  
95 =head1 AUTHOR
96  
97 Frank Seitz, L<http://fseitz.de/>
98  
99 =head1 COPYRIGHT
100  
101 Copyright (C) 2026 Frank Seitz
102  
103 =head1 LICENSE
104  
105 This code is free software; you can redistribute it and/or modify
106 it under the same terms as Perl itself.
107  
108 =cut
109  
110 # -----------------------------------------------------------------------------
111  
112 1 1;
113  
114 # eof
« Quiq/Text/Generator.pm ↑ Summary Quiq/Sql/Analyzer.pm »